Skip to content

Commit

Permalink
Fix validate
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Sep 9, 2024
1 parent 8095921 commit 960b589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/tree/_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 960b589

Please sign in to comment.