CMD + K

dtw-python

Community

A comprehensive implementation of dynamic time warping (DTW) algorithms in Python. DTW computes the optimal (least cumulative distance) alignment between points of two time series. Common DTW variants covered include local (slope) and global (window) constraints, subsequence matches, arbitrary distance definitions, normalizations, minimum variance matching, and so on. Provides cumulative distances, alignments, specialized plot styles, etc.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::dtw-python

Usage Tracking

1.7.2
1.7.1
1.5.3
1.5.2
1.5.1
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

DTW is a family of algorithms which compute the local stretch or compression to apply to the time axes of two timeseries in order to optimally map one (query) onto the other (reference). DTW outputs the remaining cumulative distance between the two and, if desired, the mapping itself (warping function). DTW is widely used for classification and clustering tasks, e.g. in bioinformatics, chemometrics, econometrics, and general timeseries mining.

About

Summary

A comprehensive implementation of dynamic time warping (DTW) algorithms in Python. DTW computes the optimal (least cumulative distance) alignment between points of two time series. Common DTW variants covered include local (slope) and global (window) constraints, subsequence matches, arbitrary distance definitions, normalizations, minimum variance matching, and so on. Provides cumulative distances, alignments, specialized plot styles, etc.

Last Updated

Oct 6, 2025 at 20:37

License

GPL-3.0-or-later

Total Downloads

444.3K

Supported Platforms

macOS-64
win-64
macOS-arm64
linux-64

Unsupported Platforms

linux-aarch64 Last supported version: 1.5.2
linux-ppc64le Last supported version: 1.5.2