Comparison
dtw-python vs fastdtw vs tslearn
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A comprehensive implementation of dynamic time warping (DTW) algorithms.
Maintained. Last release 8 weeks ago, commits in 8 of the last 26 weeks. Weaker on contributor spread.
$
pip install dtw-pythonDynamic Time Warping (DTW) algorithm with an O(N) time and memory complexity.
Likely abandoned. No release or commit for years (last release over 7 years ago).
$
pip install fastdtwA machine learning toolkit dedicated to time-series data
Actively maintained. Last release 6 weeks ago, commits in 20 of the last 26 weeks. A safe choice.
$
pip install tslearnIn short
- fastdtw looks abandoned: avoid it for new projects.
- tslearn is the most used: 262K downloads a month.
- tslearn also has the best Pythie’s Index (83).
- Safe default for a new project: tslearn.
Side by side
| Metric | dtw-python | fastdtw | tslearn |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 69 | 15 |