imblearn.metrics.pairwise.ValueDifferenceMetric.pairwise

ValueDifferenceMetric.pairwise(X, Y=None)[source]

Compute the VDM distance pairwise.

Parameters
Xndarray of shape (n_samples, n_features), dtype=np.int32

The input data. The data are expected to be encoded with a OrdinalEncoder.

Yndarray of shape (n_samples, n_features), dtype=np.int32

The input data. The data are expected to be encoded with a OrdinalEncoder.

Returns
distance_matrixndarray of shape (n_samples, n_samples)

The VDM pairwise distance.