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()