mvtsa.segmentation.OptimalPartition#

class mvtsa.segmentation.OptimalPartition(cost='l2', n_segments=2, min_size=None, jump=5, cost_params=None)[source]#

Bases: BaseSegmenter

Exact minimization of the total cost for a fixed number of segments by dynamic programming over a grid of candidate change points.

Complexity \(O(c\,M^2)\) cost evaluations with \(M = T/\text{jump}\).

Examples using mvtsa.segmentation.OptimalPartition#

Costs and search strategies

Costs and search strategies

Benchmarking segmenters with statistical tests

Benchmarking segmenters with statistical tests