timeseriesAI / tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai
https://timeseriesai.github.io/tsai/
Apache License 2.0
4.92k stars 622 forks source link

Patch_TST #806

Closed TDL77 closed 12 months ago

TDL77 commented 12 months ago

base notebook https://github.com/timeseriesAI/tsai/blob/main/tutorial_nbs/15_PatchTST_a_new_transformer_for_LTSF.ipynb

os : Windows-10-10.0.19044-SP0 python : 3.10.12 tsai : 0.3.7 fastai : 2.7.12 fastcore : 1.5.29 sklearn : 1.2.2 torch : 2.0.1 device : 2 gpus (['NVIDIA GeForce RTX 3090 Ti', 'NVIDIA GeForce RTX 3090 Ti']) cpu cores : 16 threads per cpu : 2 RAM : 127.94 GB GPU memory : [23.99, 23.99] GB

i run 👍 X, y = prepare_forecasting_data(df, fcst_history=fcst_history, fcst_horizon=fcst_horizon, x_vars=x_vars, y_vars=y_vars) X.shape, y.shape

and same errore: ValueError: operands could not be broadcast together with shapes (803,7,60) (0,)