Open JustusMzB opened 2 years ago
Just put the target without insert it inside a list.
weather_dataset = TimeSeriesDataSet(
weather_df,
time_idx="time_id",
group_ids=["group_id"],
target="WetBulbCelsius", # Careful: Wether the Dataset considers itself multi-target depends solely on wether this is a list.
time_varying_known_reals=["time_id"],
time_varying_unknown_reals=['WetBulbCelsius', "Visibility", 'DryBulbCelsius', 'DewPointCelsius', 'RelativeHumidity',
'WindSpeed', 'WindDirection', 'StationPressure', 'Altimeter'],
max_encoder_length=30,
min_encoder_length=10,
max_prediction_length=10,
min_prediction_length= 1,
allow_missing_timesteps=True)
Expected behavior
I executed TimeSeriesDataSet with a len 1 list as the target parameter. I expected a TimeSeriesDataSet to be initialized.
Actual behavior
However, result was the following Error:
I think it has to do with the way in which a dataset establishes wether it is in multi target mode: TimeSeriesDataSet.multi_target solely checks wether the parameter is a list or tuple, not it's len.
Code to reproduce the problem
Paste the command(s) you ran and the output. Including a link to a colab notebook will speed up issue resolution. If there was a crash, please include the traceback here. The code used to initialize the TimeSeriesDataSet and model should be also included.