DtwDistTslearn
Dynamic time warping distance, from tslearn.
Quickstart
from sktime.dists_kernels.dtw import DtwDistTslearn
estimator = DtwDistTslearn(global_constraint=None, sakoe_chiba_radius=None, itakura_max_slope=None, n_jobs=None, verbose=0)Parameters(5)
- global_constraint{“itakura”, “sakoe_chiba”} or None (default: None)
- Global constraint to restrict admissible paths for DTW.
- sakoe_chiba_radiusint or None (default: None)
Radius to be used for Sakoe-Chiba band global constraint. If None and
global_constraintis set to"sakoe_chiba", a radius of 1 is used. If bothsakoe_chiba_radiusanditakura_max_slopeare set,global_constraintis used to infer which constraint to use among the two. In this case, ifglobal_constraintcorresponds to no global constraint, aRuntimeWarningis raised and no global constraint is used.- itakura_max_slopefloat or None (default: None)
Maximum slope for the Itakura parallelogram constraint. If None and
global_constraintis set to"itakura", a maximum slope of 2 is used. If bothsakoe_chiba_radiusanditakura_max_slopeare set,global_constraintis used to infer which constraint to use among the two. In this case, ifglobal_constraintcorresponds to no global constraint, aRuntimeWarningis raised and no global constraint is used.- n_jobsint or None, optional (default=None)
The number of jobs to run in parallel.
Nonemeans 1 unless in ajoblib.parallel_backendcontext.-1means using all processors.- verboseint, optional (default=0)
- The verbosity level: if non zero, progress messages are printed. Above 50, the output is sent to stdout. The frequency of the messages increases with the verbosity level. If it more than 10, all iterations are reported.
References
- [1 ] H. Sakoe, S. Chiba, “Dynamic programming algorithm optimization for spoken word recognition,” IEEE Transactions on Acoustics, Speech and Signal Processing, vol. 26(1), pp. 43–49, 1978.