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.2.tar.gz (2.7 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.2-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: foundationforecast-0.1.2.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","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.2.tar.gz
Algorithm Hash digest
SHA256 758e83293e69674c92c709b48e8d6d36746b001abbdec241c4f76b41d1926cfc
MD5 87300f25e6017e88b6ead304b8bd0288
BLAKE2b-256 652e2b839f4db7d2b29a236f5bed97a840cc41da35b60949bf9fad9b9ac25c3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: foundationforecast-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 56.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0f1fe1f9f69f3964a01dd6b85d1248ddc451eb575e3301c457284dd9b9a7008
MD5 b3c819e7a2f1c327756fa4565ab789d1
BLAKE2b-256 a7726aa7e5ac80d6d350f321f1b6ee1ea33cefab9b4f381a7fef4cf5b9067572

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

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