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_timepoints or convert_labels_to_segments, only the change points inside the series are compared: the boundaries 0 and n_timepoints are set aside, as in ruptures.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.