The dtw
function in R and dtw-python
in Python both implement dynamic time warping (DTW) algorithm. However, the outcomes of the dtw
function in R and dtw-python
in Python may vary depending on several factors, including:
Implementation details: The implementation details of the DTW algorithm used may differ between R and Python, resulting in different outcomes.
Data representation: The way in which the data is represented can also affect the outcomes. For example, differences in the way that time series data is represented in R and Python could result in different DTW outcomes.
Tuning parameters: DTW has several tuning parameters such as step patterns, window size, and distance metric used. Different tuning parameters can result in different outcomes.
In general, the outcomes of dtw
function in R and dtw-python
in Python may be similar in many cases, but it is always advisable to test both implementations on the same data and tune the parameters for each implementation to achieve the best results.
Asked: 2022-08-29 11:00:00 +0000
Seen: 7 times
Last updated: Oct 15 '22