dtw(method=’itakura’)#
- pyts.metrics.dtw(x: ArrayLike | None = None, y: ArrayLike | None = None, dist: str | collections.abc.Callable[[float, float], float] = 'square', method: str = 'classic', options: dict[str, Any] | None = None, precomputed_cost: ArrayLike | None = None, return_cost: bool = False, return_accumulated: bool = False, return_path: bool = False) Any
Dynamic Time Warping distance with Itakura parallelogram constraint.
The Itakura constraint region is a parallelogram. Contrary to the Sakoe-Chiba band, whose width is constant, the Itakura parallelogram has a varying width, allowing for larger time shifts in the middle than at the first and last time points.
See also
For documentation for the rest of the parameters, see
dtw().- Options:
- max_slopefloat (default = 2.)
Maximum slope of the parallelogram.
References
[1]F. Itakura, “Minimum prediction residual principle applied to speech recognition”. IEEE Transactions on Acoustics, Speech, and Signal Processing, 23(1), 67–72 (1975).