WeightedAdjustedRandIndex#

class WeightedAdjustedRandIndex(distance_func='linear', alpha=0.1, **kwargs)[source]#

Computes the Weighted Adjusted Rand Index (WARI).

__init__(distance_func='linear', alpha=0.1, **kwargs)[source]#

Initializes the metric with optional parameters.

Methods

__init__([distance_func, alpha])

Initializes the metric with optional parameters.

compute(y_true, y_pred, *[, scored_intervals])

Compute the Weighted Adjusted Rand Index.