base
No-reset policy protocol and shared helpers.
- class pysatl_cpd.benchmark.online.noreset.metrics.policy.base.NoResetPolicy(*args, **kwargs)[source]
-
Transforms an infinite-threshold run into a threshold-marked run.
- apply(run, threshold)[source]
Apply the policy to a run at a specific threshold.
- Parameters:
run (
SingleRun[OnlineDetectionTrace[TypeVar(StateT, bound=OnlineAlgorithmState)],TypeVar(ProviderT, bound=LabeledData[Any,Any])]) – Input run with online detection trace.threshold (
float) – Detection threshold.
- Return type:
SingleRun[NoResetDetectionTrace[TypeVar(StateT, bound=OnlineAlgorithmState)],TypeVar(ProviderT, bound=LabeledData[Any,Any])]
- __init__(*args, **kwargs)