Ask Your Question

Revision history [back]

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:

  1. Implementation details: The implementation details of the DTW algorithm used may differ between R and Python, resulting in different outcomes.

  2. 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.

  3. 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.