Skip to content

Commit f097d78

Browse files
committed
Merge
Signed-off-by: Adam Li <adam2392@gmail.com>
1 parent eeb701f commit f097d78

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

sklearn/tree/_classes.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -413,16 +413,16 @@ def _fit(
413413

414414
# build the actual tree now with the parameters
415415
self._build_tree(
416-
X,
417-
y,
418-
sample_weight,
419-
missing_values_in_feature_mask,
420-
min_samples_leaf,
421-
min_weight_leaf,
422-
max_leaf_nodes,
423-
min_samples_split,
424-
max_depth,
425-
random_state,
416+
X=X,
417+
y=y,
418+
sample_weight=sample_weight,
419+
missing_values_in_feature_mask=missing_values_in_feature_mask,
420+
min_samples_leaf=min_samples_leaf,
421+
min_weight_leaf=min_weight_leaf,
422+
max_leaf_nodes=max_leaf_nodes,
423+
min_samples_split=min_samples_split,
424+
max_depth=max_depth,
425+
random_state=random_state,
426426
)
427427

428428
return self
@@ -1269,7 +1269,7 @@ def fit(
12691269
)
12701270
return self
12711271

1272-
def partial_fit(self, X, y, classes=None, sample_weight=None, check_input=True):
1272+
def partial_fit(self, X, y, sample_weight=None, classes=None, check_input=True):
12731273
"""Update a decision tree classifier from the training set (X, y).
12741274
12751275
Parameters

0 commit comments

Comments
 (0)