huggingface / blog

Public repo for HF blog posts
https://hf.co/blog
2.14k stars 656 forks source link

PatchTSMixer tutorial broken. ForecastDFDataset API change #2120

Open emanuelshalev opened 1 month ago

emanuelshalev commented 1 month ago

in the tutorial this is how ForecastDFDataset is used:

train_dataset = ForecastDFDataset( time_series_processor.preprocess(train_data), id_columns=id_columns, timestamp_column="date", input_columns=forecast_columns, output_columns=forecast_columns, context_length=context_length, prediction_length=forecast_horizon, )

but input_columns and output_columns are no longer valid parameters. What is the correct usage?

vijaye12 commented 1 month ago

We have deprecated ForecastDataset API and using TSP for dataset generation.

you can check the example here https://colab.research.google.com/github/IBM/tsfm/blob/tutorial/notebooks/tutorial/ttm_tutorial.ipynb

Also, you can also try using TTM (which is an advanced version of PatchTSMixer). Here is the model card https://huggingface.co/ibm-granite/granite-timeseries-ttm-v1

millen11 commented 1 week ago

I am trying to use the regular PatchTST model per this documentation :https://huggingface.co/blog/patchtst. I run into the same problems as the original issue and have tried the links provided as a solution, however that had more issues. Any insight on a fix?

osanseviero commented 1 week ago

cc @kashif