From a2a852047ae44976cec48b70509c21fe7586459e Mon Sep 17 00:00:00 2001 From: saleha1wer Date: Thu, 5 Jun 2025 00:39:44 +0100 Subject: [PATCH] future warning ensure_all_finite --- scikit_mol/safeinference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikit_mol/safeinference.py b/scikit_mol/safeinference.py index 9ac2380..c9188a3 100644 --- a/scikit_mol/safeinference.py +++ b/scikit_mol/safeinference.py @@ -74,7 +74,7 @@ def wrapper(obj, X, y=None, *args, **kwargs): # TODO, how can we check y in the same way as the estimator? y = check_array( y, - force_all_finite=False, # accept_sparse="csr", + ensure_all_finite=False, # accept_sparse="csr", ensure_2d=False, dtype=None, input_name="y",