#148148th of 433 in ML frameworks and libraries
tslearn
Time series clustering and classification in Python, scikit-learn style
Watch puts tslearn on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.tslearn is on your watch list. Its new releases and problems show there.
- Stars
- 3.2k
- License
- BSD-2-Clause
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
3,128 on 2 May 20263,194 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
tslearn is a Python library of time series algorithms behind a scikit-learn style API: k-means and KShape clustering, KNN, SVM and shapelet classifiers, regression, and metrics such as DTW, Global Alignment Kernel and matrix profile. Data is held as 3D numpy arrays, and variable-length series are supported. It includes UCR dataset loaders, synthetic generators and scalers.
Who it is for: Data scientists doing time series clustering or classification in Python
Strengths
- Models follow the scikit-learn API and work with its pipelines and tuning
- Covers DTW, Global Alignment Kernel, barycenters and matrix profile
- Supports variable-length series and loads UCR datasets directly
- Installs from PyPI or conda-forge; docs include an example gallery
Weaknesses
- Requires data as 3D numpy arrays, so conversion from other formats is needed
- Scope is classical time series ML; no forecasting models are listed
- Requires Python 3.11 or newer
What it needs
- no GPU
- Needs numpy, scikit-learn
- Models: KNN, TimeSeriesKMeans, KShape, KernelKMeans, TimeSeriesSVC
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #146 | synapsemlDistributed ML pipelines on Apache Spark with LightGBM, Vowpal Wabbit and ONNX | 65 out of 100 |
| #147 | pyslamVisual SLAM framework for mono, stereo and RGBD cameras in Python and C++ | 65 out of 100 |
| #149 | numpyroProbabilistic programming library on JAX with NUTS/HMC and variational inference | 65 out of 100 |
| #150 | tsne-cudaCUDA implementation of t-SNE with a scikit-learn-style Python API | 65 out of 100 |
| #151 | minariPython library for creating and loading offline reinforcement learning datasets | 65 out of 100 |