Skip to main content

foundationforecast

Foundation time series forecasting models, extracted from TimeCopilot.

Run state-of-the-art pretrained models (Chronos, Moirai, TimesFM, Toto, TiRex, TimeGPT, and more) through a single unified API.

Installation

pip install foundationforecast

Requires Python 3.10+. Some models have additional version requirements — see the Model Hub.

Optional plotting support:

pip install "foundationforecast[plot]"

Quick example

import pandas as pd
from foundationforecast import FoundationForecast
from foundationforecast.models import Chronos, Toto

df = pd.read_csv(
    "https://timecopilot.s3.amazonaws.com/public/data/air_passengers.csv",
    parse_dates=["ds"],
)

ff = FoundationForecast(models=[Chronos(), Toto(context_length=256)])
fcst = ff.forecast(df, h=12, freq="MS")
cv = ff.cross_validation(df, h=12, freq="MS")

Supported models

Chronos, FlowState, Moirai, PatchTST-FM, Sundial, T0, TabPFN, TiRex, TimeGPT, TimesFM, Toto

Documentation

Build and serve docs locally:

uv sync --group docs
uv run --group docs mkdocs serve

See Getting Started and Examples.

Development

uv sync --group dev --group docs
pre-commit install --install-hooks
uv run pytest

License

MIT

Download files

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

Source Distribution

foundationforecast-0.1.1.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

foundationforecast-0.1.1-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: foundationforecast-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for foundationforecast-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5b619c6bf5bc46c9b81964827973d9d4025faef65b69f85c957556c89cd3f9bc
MD5 611ed6006c72d32feab2fe66d60165c1
BLAKE2b-256 a393c3307da9f4a0293930cad98060132893efb85a12ff8250cb8440c1aefba2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: foundationforecast-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for foundationforecast-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 598fc883089f636aed8a152777295e9db838693852d4ebe9c78cc8f161e15d96
MD5 0b8417e3e8190dc3af75322803bfd0f3
BLAKE2b-256 cad4a81f0379a40d7289399cf906d4cb9339c4cb9242df04564bc1e15691ad21

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page