10000 Don't use dict(x, **y) · scikit-learn/scikit-learn@501bae7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 501bae7

Browse files
committed
Don't use dict(x, **y)
1 parent a581f55 commit 501bae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/ensemble/tests/test_forest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@
9797
FOREST_ESTIMATORS.update(FOREST_REGRESSORS)
9898
FOREST_ESTIMATORS.update(FOREST_TRANSFORMERS)
9999

100-
FOREST_CLASSIFIERS_REGRESSORS = dict(FOREST_CLASSIFIERS, **FOREST_REGRESSORS)
100+
FOREST_CLASSIFIERS_REGRESSORS = FOREST_CLASSIFIERS.copy()
101+
FOREST_CLASSIFIERS_REGRESSORS.update(FOREST_REGRESSORS)
101102

102103

103104
def check_classification_toy(name):

0 commit comments

Comments
 (0)
0