mvtsa.segmentation.ConsensusSegmenter#

class mvtsa.segmentation.ConsensusSegmenter(segmenters, bandwidth='auto', threshold=0.5, n_segments=None, weights=None)[source]#

Bases: BaseSegmenter

Ensemble segmentation by boundary agreement.

Parameters:
segmenterslist of segmenters

Members of the ensemble (any objects with segment(X)).

bandwidthfloat or “auto”

Kernel bandwidth in samples ("auto": 1 % of the series length, at least 3).

thresholdfloat

Minimal agreement of a consensus change point (0.5 = majority).

n_segmentsint, optional

Keep the n_segments - 1 highest peaks instead of thresholding.

weightsarray, optional

Member weights.

Attributes:
agreement_array (T,)
members_list of Segmentation

Examples using mvtsa.segmentation.ConsensusSegmenter#

Consensus of segmentations

Consensus of segmentations