Closed huayicodes closed 3 years ago
Same issues after calling raw_predictions, x, index = tft.predict(data, mode="raw", return_x= True, return_index = True)
Changing data
to 'data.copy()' at
https://github.com/jdb78/pytorch-forecasting/blob/master/pytorch_forecasting/data/timeseries.py#L1136
seems to resolve the issue.
This is fixed in the current master which will be released shortly
Expected behavior
When running
validation = TimeSeriesDataSet.from_dataset(training, data, predict=True, stop_randomization=True)
,data
is not supposed to change.Actual behavior
The columns
'relative_time_idx', 'encoder_length'
are added todata
Code to reproduce the problem
Code in the tutorial works.
Additional information
This problem is not present in version 0.7.1. Not sure about intermediate versions.