mvtsa.segmentation.BaseSegmenter#

class mvtsa.segmentation.BaseSegmenter[source]#

Bases: object

Common interface of all segmentation methods.

Subclasses implement _segment(X) -> Segmentation. fit stores the result in segmentation_ and change_points_; segment returns it. Parameters follow the scikit-learn conventions (get_params, set_params, sklearn.base.clone work).

fit_predict(X, y=None)[source]#

Per-sample labels: state labels if the method assigns states, otherwise segment indices.

segment(X)[source]#

Segment X and return the Segmentation.