report

Comprehensive classification report over multiple runs.

class pysatl_cpd.analysis.metrics.multiple_run.classification.report.ClassificationReport(error_margin)[source]

Bases: DerivedMetric[TraceT, ProviderT, Number, dict[str, Number]], Generic

Configure the classification report with an error margin.

Parameters:

error_margin (tuple[int, int]) – Allowed (left, right) margin around each true change point for matching detections.

__init__(error_margin)[source]
Parameters:

error_margin (tuple[int, int])

Return type:

None

property bases: Mapping[str, Any]

Underlying classification metrics.

Return type:

Mapping[str, Any]

compute(values)[source]

Return the computed metric values as a plain dictionary.

Parameters:

values (Mapping[str, double | int | float]) – Named metric values from the underlying source metrics.

Returns:

The same values in a new dictionary.

Return type:

dict[str, double | int | float]