tsai bundles state-of-the-art deep learning models and datasets for time-series classification, regression, forecasting, and imputation on PyTorch.
Overview
tsai is an open-source deep learning toolkit focused on sequences and time series, built on PyTorch and fastai. It collects architectures such as InceptionTime, ROCKET, TST, PatchTST, and many CNN, RNN, and transformer variants behind a sklearn-style API for training and inference.
Recent releases add downloadable benchmark datasets spanning univariate and multivariate classification, regression, and forecasting tasks, plus walk-forward cross validation, pipeline transforms, and reduced memory options for long series. Documentation on Read the Docs walks through installation, model selection, and task-specific tutorials.
Installation is via pip on Python 3.10 or newer; conda packages are no longer updated as of the 1.0 line. Optional dependencies for sktime, tsfresh, or PyWavelets are suggested only when certain transforms are needed.
Researchers and engineers use tsai to prototype sequence models without assembling each architecture manually. It targets experimentation and teaching rather than providing a hosted training service.
Key features
- Many published time-series architectures
- Classification, regression, and forecasting
- Downloadable benchmark datasets
- fastai and PyTorch integration
- Walk-forward cross validation
- sklearn-style pipeline transforms
- PyTorch 2 support
- Extensive Read the Docs guides
Use cases
- Time-series classification benchmarks
- Forecasting experiments in PyTorch
- Teaching sequence deep learning
- Rapid model comparison on standard datasets