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[all]

Quick Start

1. Setup

Clone the Time-MMD dataset:

./scripts/clone_time_mmd.sh

Split the dataset into train / val / test:

PYTHONPATH=. uv run python scripts/split_time_mmd_datasets.py \
    --train-ratio 0.6 \
    --val-ratio 0.2

2. Pre-compute Text Embeddings

PYTHONPATH=. uv run python scripts/cache_time_mmd_datasets.py --text-encoder-type english

3. Hyperparameter Tuning

Run a W&B Sweeps search for the multimodal model:

PYTHONPATH=. uv run python scripts/tune_time_mmd_sweep.py \
    --sweep-config examples/time_mmd/configs/sweeps/multimodal_1layer.yml

To compare against a fine-tuned baseline:

PYTHONPATH=. uv run python scripts/tune_baseline_sweep.py \
    --sweep-config examples/time_mmd/configs/sweeps/baseline.yml

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.5.0.tar.gz (18.9 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.5.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: multimodal_timesfm-0.5.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for multimodal_timesfm-0.5.0.tar.gz
Algorithm Hash digest
SHA256 afdfaa65185ca76c943bfdaac14c54cd629739e271ec49d42988839cda8e7000
MD5 c462326c2c522136d40c9a39b221d1d7
BLAKE2b-256 1305c91fc16b722ca7a9b6ae8207335ff00fa06cb141bf5a61d4746cd41b1962

See more details on using hashes here.

Provenance

The following attestation bundles were made for multimodal_timesfm-0.5.0.tar.gz:

Publisher: publish-to-pypi.yml on himura467/multimodal-timesfm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for multimodal_timesfm-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c54fa01a432a1fdadd16a6faea17eda9e349074cd5d2ff334be68acc9e4ba75
MD5 7379bf14dcf543ba4d58b7fde96a68bf
BLAKE2b-256 50ec482cbaf565a2c6a8129deceef221aad9169793c58e688fa10d4c8c36fd95

See more details on using hashes here.

Provenance

The following attestation bundles were made for multimodal_timesfm-0.5.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on himura467/multimodal-timesfm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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