ClaSP
ClaSP frames segmentation as a classification problem: subsequences from opposite sides of a candidate split should be distinguishable when the regimes differ.
Currently unavailable
CLASP.__init__() raises NotImplementedError because its former dependency combination is not supported by the package.
Parameters
n_segments:intor"learn", default"learn"- Number of segments, or automatic selection.
n_estimators:int, default10- Number of ensemble estimators.
window_size:intor"suss", default"suss"- Subsequence length or automatic SuSS selection.
k_neighbours:int, default3- Number of nearest neighbors used by classification.
distance,score,validation:str- Distance, classification score, and validation strategy forwarded to the intended ClaSP backend.
early_stopping:bool, defaultTrue- Enable early stopping of recursive segmentation.
threshold:float, default1e-15- Significance threshold.
excl_radius:int, default5- Exclusion radius around selected split points.
random_state:int, default2357- Random seed.
Minimal Example
from changepoynt.algorithms.clasp import CLASP
try:
detector = CLASP()
except NotImplementedError:
detector = None # ClaSP is unavailable in the current release
Reference: Schafer, Ermshaus, and Leser, ClaSP - Time Series Segmentation.