Time Series Forecasting in Python
Choose between upstream Python model libraries and external forecasting endpoints, with reproducible model and input contracts.
1. Define task, cutoff, frequency, and horizon
2. Select checkpoint and revision
3. Verify supported inputs and outputs
4. Compare against a realistic baseline
5. Choose browser or external executionTSFM provides model information and validated browser execution. External providers own their compute, credentials, and billing.
Decisions that matter
Use the upstream library for local execution
Amazon's Chronos package, Google's TimesFM implementation, and Salesforce's Uni2TS expose different Python interfaces. Follow the selected model's installation and prediction examples, pin its revision, and verify device and dependency requirements. Do not assume a TSFM SDK or shared request envelope wraps all three.
Use a provider client for remote execution
A provider API has its own authentication, payload schema, rate limits, and billing. Verify supported tasks and model versions before choosing a client. For a custom Hugging Face endpoint, the handler defines how histories, covariates, and model outputs become an HTTP contract.
Preserve forecast provenance
Save the input cutoff, model revision, horizon, sampling interval, and quantile labels with each run. Handle missing observations consistently with the upstream implementation. Evaluate on held-out data available at the issue time rather than a cleaned dataset that includes later revisions.
Understand the execution boundary
Primary sources and related guides
Chronos upstream implementation
Review the implementation, model contract, and source evidence before adopting a checkpoint.
Open sourceTimesFM upstream implementation and licenses
Review the implementation, model contract, and source evidence before adopting a checkpoint.
Open sourceMoirai / Uni2TS upstream implementation
Review the implementation, model contract, and source evidence before adopting a checkpoint.
Open sourceHugging Face custom inference handlers
Review the implementation, model contract, and source evidence before adopting a checkpoint.
Open sourceFrequently Asked Questions
Choose a checkpoint and an execution option
Start with the model contract and evidence, then select the runtime that fits your task.