Metrics#
Functions for evaluating detector outputs against ground truth, and helpers for building scorers that operate on a fitted detector and a dataset.
Metrics follow the signature (y_true, y_pred) -> float. Scorers follow the
sklearn-compatible signature (detector, X, y=None) -> float.
Changepoint metrics#
Compare predicted and true sets of changepoints.
|
Compute the F1 score for changepoint detection with a tolerance window. |
|
Compute detection precision for changepoints with a tolerance window. |
|
Compute detection recall for changepoints with a tolerance window. |
|
Compute the Hausdorff distance between two changepoint sets. |
Segment anomaly metrics#
Compare predicted and true sets of anomalous segments.
|
Compute the F1 score for segment anomaly detection. |
|
Compute detection precision for segment anomalies. |
|
Compute detection recall for segment anomalies. |
Segment label metrics#
Compare predicted and true dense per-sample segment labels.
|
Compute the Rand index for two segmentations. |
|
Compute the adjusted Rand index for two segmentations. |
Scorers#
Build and resolve sklearn-compatible scorers from metrics.
|
Wrap a |
|
Normalise |
|
|
|
|
|