mvtsa.segmentation.BOCPD#

class mvtsa.segmentation.BOCPD(hazard=200.0, model='full', prior_kappa=0.1, prior_nu=None, prior_scale=1.0, max_run=500, delay=5, threshold=0.5, min_distance=10, standardize=True)[source]#

Bases: BaseSegmenter

Bayesian on-line change point detection.

Parameters:
hazardfloat

Expected run length \(\lambda\) (samples between changes).

model{“full”, “diag”}

Normal–inverse-Wishart (full covariance) or independent Normal–Gamma models.

prior_kappa, prior_nufloat

Prior pseudo-counts of the mean and the covariance.

prior_scalefloat

Prior covariance scale relative to the within-segment noise variance (estimated from the median absolute first difference).

max_runint

Truncation of the run-length distribution.

delayint

Delay of the change evidence (see module documentation).

thresholdfloat

Peaks of the change probability above the threshold are change points.

min_distanceint

Minimal distance of change points.

standardizebool
Attributes:
run_length_posterior_array (T, max_run + 1)
change_probability_array (T,)
map_run_length_array (T,)

Examples using mvtsa.segmentation.BOCPD#

Bayesian on-line change point detection

Bayesian on-line change point detection

Consensus of segmentations

Consensus of segmentations

Benchmarking segmenters with statistical tests

Benchmarking segmenters with statistical tests

Tuning segmenter parameters

Tuning segmenter parameters