From 5f77b339a91b2482d4705f6a75eaeed813d35766 Mon Sep 17 00:00:00 2001 From: Richard C Gerkin Date: Fri, 21 Feb 2020 15:01:59 -0700 Subject: [PATCH] Removed warn_on_dtype (deprecated in sklearn) --- missingpy/pairwise_external.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/missingpy/pairwise_external.py b/missingpy/pairwise_external.py index f81c207..7f4fd01 100644 --- a/missingpy/pairwise_external.py +++ b/missingpy/pairwise_external.py @@ -120,7 +120,6 @@ def check_pairwise_arrays(X, Y, precomputed=False, dtype=None, """ X, Y, dtype_float = _return_float_dtype(X, Y) - warn_on_dtype = dtype is not None estimator = 'check_pairwise_arrays' if dtype is None: dtype = dtype_float @@ -128,14 +127,14 @@ def check_pairwise_arrays(X, Y, precomputed=False, dtype=None, if Y is X or Y is None: X = Y = check_array(X, accept_sparse=accept_sparse, dtype=dtype, copy=copy, force_all_finite=force_all_finite, - warn_on_dtype=warn_on_dtype, estimator=estimator) + estimator=estimator) else: X = check_array(X, accept_sparse=accept_sparse, dtype=dtype, copy=copy, force_all_finite=force_all_finite, - warn_on_dtype=warn_on_dtype, estimator=estimator) + estimator=estimator) Y = check_array(Y, accept_sparse=accept_sparse, dtype=dtype, copy=copy, force_all_finite=force_all_finite, - warn_on_dtype=warn_on_dtype, estimator=estimator) + estimator=estimator) if precomputed: if X.shape[1] != Y.shape[0]: