Ask Your Question
1

How do the outcomes of `dtw` function in R and `dtw-python` in Python vary?

asked 2022-08-29 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-10-15 06:00:00 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-29 11:00:00 +0000

Seen: 7 times

Last updated: Oct 15 '22