Skip to content

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

Python

allow month start frequency

Sarthak Mishra09f585d993a5
diff --git a/src/timesfm.py b/src/timesfm.py
index 8850239..0de4062 100644
--- a/src/timesfm.py
+++ b/src/timesfm.py
@@ -70,7 +70,7 @@ def freq_map(freq: str):
or freq.endswith("U")
):
return 0
- elif freq.endswith("W") or freq.endswith("M"):
+ elif freq.endswith("W") or freq.endswith("M") or freq.endswith("MS"):
return 1
elif freq.endswith("Y") or freq.endswith("Q"):
return 2