fastdtw-0.3.4
توضیحات
Dynamic Time Warping (DTW) algorithm with an O(N) time and memory complexity.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fastdtw-0.3.4 |
| نام | fastdtw |
| نسخه کتابخانه | 0.3.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kazuaki Tanida |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/slaypni/fastdtw |
| آدرس اینترنتی | https://pypi.org/project/fastdtw/ |
| مجوز | MIT |
fastdtw
-------
Python implementation of `FastDTW
<http://cs.fit.edu/~pkc/papers/tdm04.pdf>`_ [1]_, which is an approximate Dynamic Time Warping (DTW) algorithm that provides optimal or near-optimal alignments with an O(N) time and memory complexity.
Install
-------
::
pip install fastdtw
Example
-------
::
import numpy as np
from scipy.spatial.distance import euclidean
from fastdtw import fastdtw
x = np.array([[1,1], [2,2], [3,3], [4,4], [5,5]])
y = np.array([[2,2], [3,3], [4,4]])
distance, path = fastdtw(x, y, dist=euclidean)
print(distance)
References
----------
.. [1] Stan Salvador, and Philip Chan. "FastDTW: Toward accurate dynamic time warping in linear time and space." Intelligent Data Analysis 11.5 (2007): 561-580.
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
نحوه نصب
نصب پکیج whl fastdtw-0.3.4:
pip install fastdtw-0.3.4.whl
نصب پکیج tar.gz fastdtw-0.3.4:
pip install fastdtw-0.3.4.tar.gz