Skip to content

Commit

Permalink
Fix more compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias authored Dec 7, 2023
1 parent 390edf9 commit e5e5143
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions skopt/learning/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class RandomForestRegressor(_sk_RandomForestRegressor):
"""
def __init__(self, n_estimators=10, criterion='squared_error',
max_depth=None, min_samples_split=2, min_samples_leaf=1,
min_weight_fraction_leaf=0.0, max_features='auto',
min_weight_fraction_leaf=0.0, max_features=None,
max_leaf_nodes=None, min_impurity_decrease=0.,
bootstrap=True, oob_score=False,
n_jobs=1, random_state=None, verbose=0, warm_start=False,
Expand Down Expand Up @@ -392,7 +392,7 @@ class ExtraTreesRegressor(_sk_ExtraTreesRegressor):
"""
def __init__(self, n_estimators=10, criterion='squared_error',
max_depth=None, min_samples_split=2, min_samples_leaf=1,
min_weight_fraction_leaf=0.0, max_features='auto',
min_weight_fraction_leaf=0.0, max_features=None,
max_leaf_nodes=None, min_impurity_decrease=0.,
bootstrap=False, oob_score=False,
n_jobs=1, random_state=None, verbose=0, warm_start=False,
Expand Down
4 changes: 2 additions & 2 deletions skopt/learning/tests/test_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_random_forest():
max_depth=None, min_samples_split=2,
min_samples_leaf=1,
min_weight_fraction_leaf=0.,
max_features="auto", max_leaf_nodes=None,
max_features=None, max_leaf_nodes=None,
min_impurity_decrease=0., bootstrap=True,
oob_score=False,
n_jobs=1, random_state=1,
Expand Down Expand Up @@ -83,7 +83,7 @@ def test_extra_forest():
clf = ExtraTreesRegressor(n_estimators=10, criterion="squared_error",
max_depth=None, min_samples_split=2,
min_samples_leaf=1, min_weight_fraction_leaf=0.,
max_features="auto", max_leaf_nodes=None,
max_features=None, max_leaf_nodes=None,
min_impurity_decrease=0., bootstrap=False,
oob_score=False,
n_jobs=1, random_state=1,
Expand Down

0 comments on commit e5e5143

Please sign in to comment.