HausdorffDistance#
- class HausdorffDistance(convert_labels_to_segments=False, **kwargs)[source]#
Computes the Hausdorff distance between two sets of change points.
The distance is the largest distance from a change point of one set to the nearest change point of the other set. With
n_timepointsorconvert_labels_to_segments, only the change points inside the series are compared: the boundaries0andn_timepointsare set aside, as inruptures.metrics.hausdorff.- __init__(convert_labels_to_segments=False, **kwargs)[source]#
Initializes the metric with optional parameters.
Methods
__init__([convert_labels_to_segments])Initializes the metric with optional parameters.
compute(y_true, y_pred, *[, n_timepoints])Computes the Hausdorff distance.