tsseg.algorithms package
Subpackages
- tsseg.algorithms.amoc package
- tsseg.algorithms.autoplait package
- tsseg.algorithms.binseg package
- tsseg.algorithms.bocd package
- tsseg.algorithms.bottomup package
- tsseg.algorithms.changefinder package
- tsseg.algorithms.clap package
- Description
- Usage
- Submodules
- tsseg.algorithms.clap.clap module
- tsseg.algorithms.clap.clap_detector module
- tsseg.algorithms.clap.clasp_detector module
- tsseg.algorithms.clap.clasp_knn module
- tsseg.algorithms.clap.distance module
- tsseg.algorithms.clap.nearest_neighbour module
- tsseg.algorithms.clap.scoring module
- tsseg.algorithms.clap.segmentation module
- tsseg.algorithms.clap.utils module
- tsseg.algorithms.clap.validation module
- tsseg.algorithms.clap.window_size module
- Module contents
- tsseg.algorithms.dynp package
- tsseg.algorithms.e2usd package
- tsseg.algorithms.eagglo package
- tsseg.algorithms.espresso package
- tsseg.algorithms.fluss package
- tsseg.algorithms.ggs package
- tsseg.algorithms.hdp_hsmm package
- tsseg.algorithms.hidalgo package
- tsseg.algorithms.hmm package
- tsseg.algorithms.icid package
- tsseg.algorithms.igts package
- tsseg.algorithms.kcpd package
- tsseg.algorithms.patss package
- Description
- Parameters
- Usage
- Subpackages
- tsseg.algorithms.patss.algorithms package
- tsseg.algorithms.patss.embedding package
- Submodules
- tsseg.algorithms.patss.embedding.FrequentPatternMiningEmbedder module
- tsseg.algorithms.patss.embedding.PatternBasedEmbedder module
- tsseg.algorithms.patss.embedding.PatternBasedEmbedding module
- tsseg.algorithms.patss.embedding.embedding_matrix module
- tsseg.algorithms.patss.embedding.pattern_filter module
- tsseg.algorithms.patss.embedding.pattern_mining module
- Module contents
- tsseg.algorithms.patss.segmentation package
- Submodules
- tsseg.algorithms.patss.detector module
- Module contents
- tsseg.algorithms.pelt package
- tsseg.algorithms.prophet package
- tsseg.algorithms.random package
- tsseg.algorithms.ruptures package
- tsseg.algorithms.tglad package
- tsseg.algorithms.ticc package
- tsseg.algorithms.time2state package
- tsseg.algorithms.tire package
- tsseg.algorithms.tscp2 package
- tsseg.algorithms.vqtss package
- tsseg.algorithms.vsax package
- tsseg.algorithms.window package
Submodules
tsseg.algorithms.utils module
- tsseg.algorithms.utils.aggregate_change_points(all_cps, n_cp, tolerance=0, signal_len=None)[source]
Aggregate change points from multiple dimensions with tolerance.
- Parameters:
all_cps (
list[int]) – List of all change point indices detected across all dimensions.n_cp (
int) – Number of change points to return.tolerance (
int|float) – Tolerance window for grouping change points. If float < 1.0, it is interpreted as a fraction of signal_len.signal_len (
int|None) – Length of the signal, required if tolerance is a fraction.
- Returns:
Sorted array of aggregated change point indices.
- Return type:
- tsseg.algorithms.utils.create_state_labels(changepoints, n_timepoints)[source]
Create state labels from a list of changepoints.
- tsseg.algorithms.utils.extract_cps(label_seq)[source]
Extract changepoints from a sequence of state labels.
A changepoint is defined as the first timepoint of a new state.