Practical overview
When it fits
Use TS-ICL when you need a Python-based, zero-shot model for forecasting or imputation and can provide its checkpoint and required Python and PyTorch versions. It is particularly relevant when the input history contains missing observations or when probabilistic outputs and covariates matter.
Who it is for
- Researchers working with time-series forecasting or missing-data imputation
- Developers building workflows that need probabilistic time-series predictions
- Users handling partially observed, irregularly sampled, or covariate-informed time series
Documented uses
- Predict a specified number of future time steps from an observed series.
- Reconstruct missing values in a series, including pointwise or block missingness.
- Produce point predictions alongside quantile-based uncertainty information.
- Use covariates when forecasting or imputing time-series data.
Requirements & limits
The documentation specifies Python 3.12 or later and PyTorch 2.5.1 or later. The code and weights are released under a non-commercial license; commercial licensing enquiries are directed to the project.
- The workflow requires a local model checkpoint as well as the tsicl package.
- Forecast inputs can be NumPy arrays or PyTorch tensors, with documented shapes for single series and batches.
- For full covariate benefit in forecasting, covariates should cover both the context and forecast horizon.
- The model supports arbitrary timestamp queries and handles NaN values in observed history natively.
- The stated non-commercial license may affect commercial use.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run a basic zero-shot forecast or imputation
Load the TS-ICL checkpoint and call its forecasting or imputation method on a time series.
Before you start
- Python 3.12 or later
- PyTorch 2.5.1 or later
- The tsicl package, installed with pip install tsicl
- A TS-ICL checkpoint from the project's Hugging Face repository
- A NumPy array or PyTorch tensor containing the input series; imputation inputs may contain NaN values
Steps
Install the package with pip install tsicl.
Obtain the TS-ICL checkpoint and provide its local path when constructing TSICL.
For forecasting, call model.forecast with the series and a prediction_length; for imputation, call model.impute with a series containing missing values.
Read the returned point prediction and quantile predictions.
Expected outcome
A point estimate and quantile predictions for the requested forecast horizon or missing values.
Guide limitations
- The documented code example illustrates the API but does not provide a complete standalone program with sample input data.
- Code and model weights are released under a non-commercial license; commercial licensing requires contacting the project.
- The forecast prediction_length is specified by the user; the documentation does not prescribe a universally suitable horizon.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 28 November 2026
- Original website title
- TS-ICL : A Flexible Time-Indexed Foundation Model for Time Series via In-Context Learning — TS-ICL 0.1.0 documentation · Official homepage title · retained in its source language

