From 960b589554982b2d08404186bf57a4de83862e80 Mon Sep 17 00:00:00 2001 From: Adam Li Date: Sun, 8 Sep 2024 21:28:36 -0400 Subject: [PATCH] Fix validate Signed-off-by: Adam Li --- sklearn/tree/_classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sklearn/tree/_classes.py b/sklearn/tree/_classes.py index 2e792e768c17d..32bb14e7827b4 100644 --- a/sklearn/tree/_classes.py +++ b/sklearn/tree/_classes.py @@ -1397,8 +1397,8 @@ def partial_fit(self, X, y, sample_weight=None, check_input=True, classes=None): # csr. check_X_params = dict(dtype=DTYPE, accept_sparse="csc") check_y_params = dict(ensure_2d=False, dtype=None) - X, y = self._validate_data( - X, y, reset=False, validate_separately=(check_X_params, check_y_params) + X, y = validate_data( + self, X, y, reset=False, validate_separately=(check_X_params, check_y_params) ) if issparse(X): X.sort_indices()