Multimodal extension of Google's TimesFM for time series forecasting with text
Project description
Multimodal TimesFM
A multimodal extension of Google's TimesFM for time series forecasting with text inputs.
Installation
pip install multimodal-timesfm
Quick Start
from multimodal_timesfm import MultimodalTimesFM, TimesFmHparams, MultimodalTimesFMConfig
# Configure model
hparams = TimesFmHparams(context_len=512, horizon_len=128)
config = MultimodalTimesFMConfig(text_encoder_type="english")
model = MultimodalTimesFM(hparams, config, "checkpoint.pt")
# Forecast with time series and text descriptions
forecasts, quantiles = model.forecast(
inputs=[time_series_data],
text_descriptions=[[[["Market volatility high"]]]],
freq=[0],
forecast_context_len=128
)
Features
- Multimodal forecasting: Combines time series data with textual context
- Built on TimesFM: Leverages Google's state-of-the-art time series foundation model
- Flexible text encoding: Supports English and Japanese text inputs
- Easy integration: Simple API for adding text context to time series forecasting
Examples
See the examples/ directory for complete usage examples including training on the Time-MMD dataset.
Acknowledgments
We thank the Time-MMD team for providing the multimodal time series dataset used in our examples and experiments.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file multimodal_timesfm-0.1.0.tar.gz.
File metadata
- Download URL: multimodal_timesfm-0.1.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d3e30837a3316eeb2fe3d325c1581eef9c6f1fd1892a8948a001312d4a30608
|
|
| MD5 |
61878259c363f184f2e5835d453e7be8
|
|
| BLAKE2b-256 |
14275275187df96e7118048cb4e960c7f7039862c9e51ea0595b655e6dc196cd
|
File details
Details for the file multimodal_timesfm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: multimodal_timesfm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d4417bb2295ec7ee15c62f44a1a7e7084200ab6eefab2832ad2a8c1d3588662
|
|
| MD5 |
55fb0552c4044251a2130bf1dadfae6f
|
|
| BLAKE2b-256 |
da29295e3de336039c438075a18b2f1779a34474bd77dc856b78dfdf1f7862ff
|