#148148th of 433 in ML frameworks and libraries

tslearn

Time series clustering and classification in Python, scikit-learn style

Stars
3.2k
License
BSD-2-Clause
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 30 weeks+66
2 May 2026: 3,128 stars9 May 2026: 3,129 stars16 May 2026: 3,131 stars23 May 2026: 3,135 stars30 May 2026: 3,139 stars6 Jun 2026: 3,140 stars13 Jun 2026: 3,140 stars20 Jun 2026: 3,140 stars27 Jun 2026: 3,141 stars4 Jul 2026: 3,142 stars11 Jul 2026: 3,146 stars18 Jul 2026: 3,147 stars25 Jul 2026: 3,149 stars1 Aug 2026: 3,154 stars8 Aug 2026: 3,155 stars15 Aug 2026: 3,159 stars22 Aug 2026: 3,162 stars29 Aug 2026: 3,165 stars5 Sept 2026: 3,166 stars12 Sept 2026: 3,169 stars19 Sept 2026: 3,170 stars26 Sept 2026: 3,173 stars3 Oct 2026: 3,178 stars10 Oct 2026: 3,180 stars17 Oct 2026: 3,182 stars24 Oct 2026: 3,185 stars31 Oct 2026: 3,186 stars7 Nov 2026: 3,187 stars14 Nov 2026: 3,190 stars21 Nov 2026: 3,194 stars28 Nov 2026: 3,194 stars

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
Also in ML frameworks and libraries
RankProjectScore
#146synapsemlDistributed ML pipelines on Apache Spark with LightGBM, Vowpal Wabbit and ONNX5.3k starsMIT65 out of 100
#147pyslamVisual SLAM framework for mono, stereo and RGBD cameras in Python and C++3.4k starsGPL-3.065 out of 100
#149numpyroProbabilistic programming library on JAX with NUTS/HMC and variational inference2.8k starsApache-2.065 out of 100
#150tsne-cudaCUDA implementation of t-SNE with a scikit-learn-style Python API2k starsBSD-3-Clause65 out of 100
#151minariPython library for creating and loading offline reinforcement learning datasets1.7k starscustom license65 out of 100