Skip to content

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

Python

minor changes to readme

Rajat Sen2b5516d2f125
diff --cc README.md
index dda2f4a,edfe46c..8201730
--- a/README.md
+++ b/README.md
@@@ -57,13 -57,9 +57,13 @@@ pip install -e
### Code Example
```python
+import torch
import numpy as np
import timesfm
+
+torch.set_float32_matmul_precision("high")
+
- model = TimesFM_2p5_200M_torch.from_pretrained("google/timesfm-2.5-200m-pytorch")
+ model = timesfm.TimesFM_2p5_200M_torch.from_pretrained("google/timesfm-2.5-200m-pytorch")
model.compile(
timesfm.ForecastConfig(
@@@ -74,6 -70,6 +74,7 @@@
force_flip_invariance=True,
infer_is_positive=True,
fix_quantile_crossing=True,
++ torch_compile=True,
)
)
point_forecast, quantile_forecast = model.forecast(