pyts
A python package for time series classification
Decision gist · record as of 2026-08-14
Yes, if you need time series classification and want a well-structured, scikit-learn-compatible library with multiple algorithms and transformations. The permissive license, low install friction, and established dependencies make it low-risk. However, the last release was in June 2023, so verify that the package's algorithms and dependencies align with your Python and library versions before committing to production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.8 and working installations of numpy, scipy, scikit-learn, joblib, and numba; Numba in particular may require a C compiler on some systems.
- Low friction install with a pure-Python wheel.
- Depends on five established scientific packages (numpy, scipy, scikit-learn, joblib, numba); all are widely available.
License · maintenance · safety
new BSD (permissive) — Licensed under new BSD (permissive), which allows commercial and private use with minimal restrictions—suitable for most projects without legal friction.
last release 2023-06-18 (1153 days) · last repo commit 2025-06-18 · 1,875 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 131,673 downloads/mo, #11,579 on PyPI
Alternatives
Verify before relying
pip install pyts
from pyts.classification import SAXVSM
from pyts.datasets import load_UCR
X_train, X_test, y_train, y_test = load_UCR('GunPoint')
clf = SAXVSM()
clf.fit(X_train, y_train)
clf.score(X_test, y_test)- Specific performance benchmarks or accuracy comparisons against other time series classification libraries.
- Whether the package is actively maintained beyond the June 2023 release or if recent commits represent only minor updates.
- Real-world scalability limits for very long time series or high-dimensional multivariate data.
What it is and what it does
Pyts is a scikit-learn-style library for time series classification that implements state-of-the-art algorithms and provides a suite of preprocessing and transformation tools. It bridges the gap between raw temporal data and machine learning by offering multiple ways to represent time series—from symbolic approximations (Piecewise Aggregate Approximation, Symbolic Aggregate approXimation) to image-based encodings (Recurrence Plot, Gramian Angular Field) to bag-of-words models. The library also includes specialized classifiers like SAXVSM, BOSSVS, Learning Shapelets, and Time Series Forest, as well as time-series-specific metrics such as Dynamic Time Warping variants and the BOSS metric.
The package is built on top of numpy, scipy, scikit-learn, joblib, and numba, inheriting their maturity and performance characteristics. It is designed for developers and researchers who need to classify temporal sequences—whether univariate or multivariate—without building these algorithms from scratch. The modular structure (approximation, bag_of_words, classification, decomposition, image, metrics, preprocessing, transformation) allows you to compose pipelines for custom workflows, and it includes utilities to fetch benchmark datasets from the UEA & UCR Time Series Classification Repository.
Use it for
- Classify sensor time series (e.g., accelerometer data, ECG signals) using shapelet or bag-of-words approaches.
- Transform raw time series into symbolic or image representations for use with standard classifiers.
- Compute specialized distance metrics (Dynamic Time Warping) between temporal sequences for nearest-neighbor classification.
- Preprocess multivariate time series (e.g., stock prices, weather data) sample-wise before feeding to downstream models.
- Benchmark your own time series classifier against state-of-the-art algorithms using UCR/UEA datasets.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need time series classification and want a well-structured, scikit-learn-compatible library with multiple algorithms and transformations.
The permissive license, low install friction, and established dependencies make it low-risk. However, the last release was in June 2023, so verify that the package's algorithms and dependencies align with your Python and library versions before committing to production use.
Install
pyts on PyPI
Before you install
Low friction install with a pure-Python wheel. Depends on five established scientific packages (numpy, scipy, scikit-learn, joblib, numba); all are widely available. Last release was in June 2023 and the repository remains active, though the package is marked as aging in maintenance status.
Requires Python >= 3.8 and working installations of numpy, scipy, scikit-learn, joblib, and numba; Numba in particular may require a C compiler on some systems.
License in practice
Licensed under new BSD (permissive), which allows commercial and private use with minimal restrictions—suitable for most projects without legal friction.
Quickstart
pip install pyts
from pyts.classification import SAXVSM
from pyts.datasets import load_UCR
X_train, X_test, y_train, y_test = load_UCR('GunPoint')
clf = SAXVSM()
clf.fit(X_train, y_train)
clf.score(X_test, y_test)
Verify before relying
- Specific performance benchmarks or accuracy comparisons against other time series classification libraries.
- Whether the package is actively maintained beyond the June 2023 release or if recent commits represent only minor updates.
- Real-world scalability limits for very long time series or high-dimensional multivariate data.
Package facts
| License | new BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesnumpyscipyscikit-learnjoblibnumba |
| Maintenance | Aging 1,153 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 131,673 / month, #11,579 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI ApprovedOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Software Development |
Evidence: pyts-0.13.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “time series classification”
- pytsPyts provides time series classification algorithms and preprocessing…
- sktimesktime provides a unified interface for time series machine learning…
- tslearntslearn provides machine learning algorithms optimized for time…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also antropy · pypots · stumpy · tslearn · sktime · benchpots · dtw-python · darts · pyriemann · ruptures