Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

multimodal_timesfm-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multimodal_timesfm-0.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

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

Hashes for multimodal_timesfm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d3e30837a3316eeb2fe3d325c1581eef9c6f1fd1892a8948a001312d4a30608
MD5 61878259c363f184f2e5835d453e7be8
BLAKE2b-256 14275275187df96e7118048cb4e960c7f7039862c9e51ea0595b655e6dc196cd

See more details on using hashes here.

File details

Details for the file multimodal_timesfm-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for multimodal_timesfm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4417bb2295ec7ee15c62f44a1a7e7084200ab6eefab2832ad2a8c1d3588662
MD5 55fb0552c4044251a2130bf1dadfae6f
BLAKE2b-256 da29295e3de336039c438075a18b2f1779a34474bd77dc856b78dfdf1f7862ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page