Skip to content

Commit 92924eb

Browse files
committed
iter
1 parent eaa6873 commit 92924eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imblearn/metrics/pairwise.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from sklearn.base import BaseEstimator
1111
from sklearn.utils import check_consistent_length
1212
from sklearn.utils.multiclass import unique_labels
13-
from sklearn.utils.validation import check_is_fitted
13+
from sklearn.utils.validation import check_array, check_is_fitted
1414

1515
from ..base import _ParamsValidationMixin
1616
from ..utils._param_validation import StrOptions
@@ -208,11 +208,11 @@ def pairwise(self, X, Y=None):
208208
The VDM pairwise distance.
209209
"""
210210
check_is_fitted(self)
211-
X = validate_data(self, X=X, reset=False, dtype=np.int32)
211+
X = check_array(X, dtype=np.int32)
212212
n_samples_X = X.shape[0]
213213

214214
if Y is not None:
215-
Y = validate_data(self, Y=Y, reset=False, dtype=np.int32)
215+
Y = check_array(Y, dtype=np.int32)
216216
n_samples_Y = Y.shape[0]
217217
else:
218218
n_samples_Y = n_samples_X

0 commit comments

Comments
 (0)