Closed SebastienZh closed 1 year ago
This can be fixed by upgrading pandas version to >=1.4.1
, the lower bound version range of pandas in v0.6.2 does not work with timeseries. This has been fixed in upcoming v0.7 release.
You can fix right now via:
pip install -U pandas
Describe the bug I'm using autogluon 0.6.2 to predict time series data. While fitting the training data, the error "TypeError: n needs to be an int or a list/set/tuple of ints" occurred. Part of the exception went as follows:
It seems that something went wrong calling Pandas' groupby method.
To Reproduce The dataset was constructed as shown in the documentation. 4 known covariates were added to the dataset.
ts_dataframe = TimeSeriesDataFrame.from_data_frame( build_labels(train_data_clean[4],100,"sensor_5"), id_column="item_id", timestamp_column="timestamp")
ts_dataframe["value_sr1"] = train_data_clean[0].values
ts_dataframe["value_sr2"] = train_data_clean[1].values
ts_dataframe["value_sr3"] = train_data_clean[2].values
ts_dataframe["value_sr4"] = train_data_clean[3].values
The predictor was constructed and fitted as follows:predictor = TimeSeriesPredictor( prediction_length=10000, target="value", known_covariates_names=["value_sr1","value_sr2","value_sr3","value_sr4"], eval_metric="MSE", path = "problem_1" )
predictor.fit(train_data,presets="best_quality")
The training data has the length of 990001, and I hope to use it to predict 10000 length of data.Installed Versions