8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3a9da9 commit 5847006Copy full SHA for 5847006
sklearn/tree/tests/test_tree.py
@@ -28,7 +28,7 @@
28
from sklearn import datasets
29
from sklearn.utils.fixes import bincount
30
31
-from sklearn.preprocessing import balance_weights
+from sklearn.preprocessing._weights import _balance_weights
32
33
34
CLF_CRITERIONS = ("gini", "entropy")
@@ -518,7 +518,7 @@ def test_unbalanced_iris():
518
"""Check class rebalancing."""
519
unbalanced_X = iris.data[:125]
520
unbalanced_y = iris.target[:125]
521
- sample_weight = balance_weights(unbalanced_y)
+ sample_weight = _balance_weights(unbalanced_y)
522
523
for name, TreeClassifier in CLF_TREES.items():
524
clf = TreeClassifier(random_state=0)
0 commit comments