thuml / Autoformer

About Code release for "Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting" (NeurIPS 2021), https://arxiv.org/abs/2106.13008
MIT License
2k stars 429 forks source link

getting error for freq a, needed for yearly granularity #105

Closed Sanjeev97 closed 1 year ago

Sanjeev97 commented 1 year ago
return np.vstack([feat(dates) for feat in time_features_from_frequency_str(freq)])

File "<__array_function__ internals>", line 6, in vstack File "D:\autoformer\venv\lib\site-packages\numpy\core\shape_base.py", line 282, in vstack return _nx.concatenate(arrs, 0) File "<__array_function__ internals>", line 6, in concatenate ValueError: need at least one array to concatenate

wuhaixu2016 commented 1 year ago

Hi, thanks for your response. You can check whether the timestamp of the data is in the form of 2020-01-01 00:10:00.