Transformer (Pairwise Panel)
SoftDtwDistTslearn
Soft dynamic time warping distance, from tslearn.
Direct interface to tslearn.metrics.cdist_soft_dtw and tslearn.metrics.cdist_soft_dtw_normalized.
Schnellstart
python
from sktime.dists_kernels.dtw import SoftDtwDistTslearn
estimator = SoftDtwDistTslearn(normalized=False, gamma=1.0)Parameter(2)
- normalizedbool, default = False
Whether the DTW distance should be normalized. If
False, interfacestslearn.metrics.cdist_soft_dtw. IfTrue, interfacestslearn.metrics.cdist_soft_dtw_normalized.- gammafloat (default 1.)
- Gamma parameter for Soft-DTW
Referenzen
[1]
M. Cuturi, M. Blondel “Soft-DTW: a Differentiable Loss Function for Time-Series,” ICML 2017.