mvtsa.segmentation.monotone_labels#
- mvtsa.segmentation.monotone_labels(U, min_length=1)[source]#
Contiguous crisp segmentation that agrees best with fuzzy memberships.
The clusters (columns of
U, ordered in time) are visited in order, each at most once; dynamic programming maximizes \(\sum_t\log u_{t,\ell(t)}\) over non-decreasing label sequences \(\ell(t)\). Unlike the per-sample maximum, the result never splits a segment into alternating fragments.