TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Python
fix: correct 'complied' typo and replace print with logging
darkpowerxobc03b77e9e9f
diff --git a/src/timesfm/configs.py b/src/timesfm/configs.pyindex 88a63af..9a263de 100644--- a/src/timesfm/configs.py+++ b/src/timesfm/configs.py@@ -23,11 +23,11 @@ class ForecastConfig:"""Options for forecasting.Attributes:- max_context: The maximum context length. This is used by the complied decode+ max_context: The maximum context length. This is used by the compiled decodefunction at inference time during batched inference. Any input time serieswith length less than max_context will be padded with zeros, and withlength greater than max_context will be truncated.- max_horizon: The maximum horizon length. This is used by the complied decode+ max_horizon: The maximum horizon length. This is used by the compiled decodefunction at inference time during batched inference. The compiled cacheddecoding function will by default forecast till max_horizon.normalize_inputs: Whether to normalize the inputs. This is useful when thediff --git a/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py b/src/timesfm/timesfm_2p5/timesfm_2p5_torch.pyindex 9bbd771..3e7c9f1 100644--- a/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py+++ b/src/timesfm/timesfm_2p5/timesfm_2p5_torch.py@@ -85,7 +85,7 @@ class TimesFM_2p5_200M_torch_module(nn.Module):if "torch_compile" in kwargs:torch_compile = kwargs["torch_compile"]if torch_compile:- print("Compiling model...")+ logging.info("Compiling model...")self = torch.compile(self)self.eval()