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.1.tar.gz (20.2 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.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file multimodal_timesfm-0.1.1.tar.gz.

File metadata

  • Download URL: multimodal_timesfm-0.1.1.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for multimodal_timesfm-0.1.1.tar.gz
Algorithm Hash digest
SHA256 04000ab6a906b7af28c99cb157cd41104ec106364e030225bd465a330f532cc1
MD5 54619053a00990d5077f02485e4f3402
BLAKE2b-256 da906e99d25c8889f88781b704ac099ec7d3b0787a15ef100cc3651594a12b9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for multimodal_timesfm-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3459994fc535138fe68841936c14b2817999ce10e794fc82a96970f1d13014de
MD5 bf91d4ab5582f8f89c2f7eccccff726a
BLAKE2b-256 5cacaf8106c429d7e0a396b5992dd548ede5468978716cc621b951fca94bf7be

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