imblearn.metrics.pairwise.ValueDifferenceMetric.fit

ValueDifferenceMetric.fit(X, y)[source]

Compute the necessary statistics from the training set.

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_features,)

The target.

Returns
self