fn_metric

Single-run false negative count metric.

class pysatl_cpd.analysis.metrics.single_run.classification.fn_metric.FalseNegativeCount(error_margin)[source]

Bases: ClassificationPrimitive, Generic

Count true change points that have no matched detection.

Parameters:

error_margin (tuple[int, int])

evaluate(run)[source]

Count true change points that have no matched detection.

Parameters:

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

Returns:

The false negative count.

Return type:

int