classification_table_global
Global classification table scenario for no-reset benchmarks.
- class pysatl_cpd.benchmark.online.noreset.scenarios.classification_table_global.NoResetClassificationTableScenario(entries, collect_states=False)[source]
Bases:
NoResetBenchmarkScenario[DataT,DataFrame]Scenario that computes classification metrics across all transitions.
- Parameters:
entries (
Sequence[OnlineNoResetBenchmarkEntry]) – Detector entries to benchmark.collect_states (
bool) – Whether to retain algorithm states during detection (default False).
- __init__(entries, collect_states=False)[source]
- Parameters:
entries (Sequence[OnlineNoResetBenchmarkEntry])
collect_states (bool)
- Return type:
None
- set_registry(registry)[source]
Set the registry used by the internal classification analyzer.
- Return type:
- Parameters:
registry (BenchmarkRegistry[DataT, OnlineDetectionTrace[Any]])
- set_classification_report(classification_report)[source]
Set the classification report used by the internal analyzer.
- prepare_benchmark_jobs(dataset)[source]
Build benchmark jobs using only bisegment providers.
- Parameters:
dataset (
Dataset[TypeVar(DataT),TimeseriesAnnotation]) – Input dataset with bisegment annotations.- Returns:
One job per entry, each using the bisegment providers.
- Return type:
Sequence[BenchmarkJob[TypeVar(DataT)]]
- analyze(registry)[source]
Evaluate classification metrics across resolved thresholds.
Resolves thresholds from picked runs, then evaluates the classification table for each entry.
- Parameters:
registry (
BenchmarkRegistry[TypeVar(DataT),OnlineDetectionTrace[Any]]) – Registry containing cached detection runs.- Returns:
Classification table per detector description.
- Return type:
dict[ChangePointDetectorDescription,DataFrame]