aditya-agrawal-ikigai
commited on
Commit
•
8e2e019
1
Parent(s):
58aafbe
Update prediction_length_map
Browse filesCurrently, the prediction length map maps the frequency of the data sets to their expected forecast horizon.
However, it uses pandas frequency strings which are outdated and causes issues when data loading.
This change simply adds new keys reflecting this change in pandas. There may be more keys that need to be updated but these are all I found.
- monash_tsf.py +4 -0
monash_tsf.py
CHANGED
@@ -473,11 +473,15 @@ class MonashTSF(datasets.GeneratorBasedBuilder):
|
|
473 |
if forecast_horizon is None:
|
474 |
prediction_length_map = {
|
475 |
"S": 60,
|
|
|
476 |
"T": 60,
|
|
|
477 |
"H": 48,
|
|
|
478 |
"D": 30,
|
479 |
"W": 8,
|
480 |
"M": 12,
|
|
|
481 |
"Y": 4,
|
482 |
}
|
483 |
freq = frequency_converter(frequency)
|
|
|
473 |
if forecast_horizon is None:
|
474 |
prediction_length_map = {
|
475 |
"S": 60,
|
476 |
+
"s": 60,
|
477 |
"T": 60,
|
478 |
+
"min": 60,
|
479 |
"H": 48,
|
480 |
+
"h": 48,
|
481 |
"D": 30,
|
482 |
"W": 8,
|
483 |
"M": 12,
|
484 |
+
"ME": 12,
|
485 |
"Y": 4,
|
486 |
}
|
487 |
freq = frequency_converter(frequency)
|