Open Alec-Schneider opened 1 year ago
Hello! Got the same error. I fixed it by upgrading to scikit-learn version 1.1.3
Hi @BohdanBilonoh, unfortunately that did not work. Now I am receiving the below error message when trying to import pytorch_forecasting
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
The error is due to using older version of pytorch-forecasting. The issue is solved in the recent version in this line
return super().transform(y, return_norm=return_norm, target_scale=target_scale)
the commit details: https://github.com/jdb78/pytorch-forecasting/commit/a5f56ca8b0b636fb9517459b56c931934736d42e
try to upgrade or install via pip
Expected behavior
I am attempting to run the stallion example as I am using PyTorch-Forecasting for the first time and trying to build the training dataloader. Expecting to have the training and validation sets created.
Actual behavior
However, I am receiving an error message: "TypeError: TorchNormalizer.transform() missing 1 required positional argument: 'X'". When I check the documentation for the TorchNormalizer I see no 'X' parameter required for the transform method of the class.
Code to reproduce the problem