pyts.metrics.dtw(x=None, y=None, dist='square', method='classic', options={}, precomputed_cost=None, return_cost=False, return_accumulated=False, return_path=False)

Classic Dynamic Time Warping (DTW) distance between two time series.

The classic version of DTW has no constraint region, allowing for possibly very large time shifts. This can be an upside or a downside depending on the application. If you do not want to allow large time shifts, consider using another method with a constraint region.

See also

For documentation for the rest of the parameters, see dtw().

This method has no options.


[1]H. Sakoe and S. Chiba, “Dynamic programming algorithm optimization for spoken word recognition”. IEEE Transactions on Acoustics, Speech, and Signal Processing, 26(1), 43-49 (1978).