bisegment
Bisegment-based policies for no-reset classification evaluation.
- class pysatl_cpd.benchmark.online.noreset.metrics.policy.bisegment.BisegmentPolicyBase(*, max_delay, strict=True)[source]
-
Shared implementation for no-reset bisegment policies.
- Parameters:
- Raises:
ValueError – If
max_delayis negative.
- apply(run, threshold)[source]
Apply the policy to a single run and return a classified trace.
Validates the run as a bisegment run, computes detection points in both the false and true regions, and packages the result into a
NoResetDetectionTrace.- Parameters:
run (
SingleRun[OnlineDetectionTrace[TypeVar(StateT, bound=OnlineAlgorithmState)],TypeVar(ProviderT, bound=LabeledData[Any,Any])]) – Input run with anOnlineDetectionTraceand labeled data.threshold (
float) – Threshold applied to the detection function values.
- Returns:
Run wrapping a classified no-reset trace.
- Return type:
SingleRun[NoResetDetectionTrace[TypeVar(StateT, bound=OnlineAlgorithmState)],TypeVar(ProviderT, bound=LabeledData[Any,Any])]
- class pysatl_cpd.benchmark.online.noreset.metrics.policy.bisegment.PointBasedPolicy(*, max_delay, strict=True)[source]
Bases:
BisegmentPolicyBase,GenericPoint-based no-reset policy.
- class pysatl_cpd.benchmark.online.noreset.metrics.policy.bisegment.EventBasedPolicy(*, max_delay, strict=True)[source]
Bases:
BisegmentPolicyBase,GenericEvent-based no-reset policy.