mvtsa.warping.learn_segment_weights#

mvtsa.warping.learn_segment_weights(model, collection, labels, grid=None)[source]#

Grid search of the weights of a segment-level measure.

model is a PLADistance (weights (w_M, w_S)) or a CBDTW whose local is a MixedSegmentDistance. Weights are searched on a simplex grid; returns (best_weights, {weights: accuracy}). The segmentations are computed once.

Examples using mvtsa.warping.learn_segment_weights#

Piecewise linear warping: MPLA, SPLA and MDPLA

Piecewise linear warping: MPLA, SPLA and MDPLA

A multivariate mixed segment distance

A multivariate mixed segment distance