fp_metric

Single-run false positive count metric.

class pysatl_cpd.analysis.metrics.single_run.classification.fp_metric.FalsePositiveCount(error_margin)[source]

Bases: ClassificationPrimitive, Generic

Count detections that are not matched to any true change point.

Parameters:

error_margin (tuple[int, int])

evaluate(run)[source]

Count detections that are not matched to any true change point.

Parameters:

run (SingleRun[TypeVar(TraceT, bound= DetectionTrace), TypeVar(ProviderT, bound= LabeledData)]) – A single detection run with trace and labeled provider.

Returns:

The false positive count.

Return type:

int