Skip to content

Commit

Permalink
fix VisionTS default seasonality issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Keytoyze committed Sep 18, 2024
1 parent 7b9adb7 commit 9b38eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/benchmarks/run_visionts.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def norm_freq_str(freq_str: str) -> str:

def get_seasonality_list(freq: str) -> int:
offset = pd.tseries.frequencies.to_offset(freq)
base_seasonality_list = POSSIBLE_SEASONALITIES.get(norm_freq_str(offset.name), 1)
base_seasonality_list = POSSIBLE_SEASONALITIES.get(norm_freq_str(offset.name), [])
seasonality_list = []
for base_seasonality in base_seasonality_list:
seasonality, remainder = divmod(base_seasonality, offset.n)
Expand Down

0 comments on commit 9b38eb3

Please sign in to comment.