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 1f76574 commit 5a333cdCopy full SHA for 5a333cd
sklearn/utils/class_weight.py
@@ -71,7 +71,7 @@ def compute_class_weight(class_weight, classes, y):
71
# user-defined dictionary
72
weight = np.ones(classes.shape[0], dtype=np.float64, order='C')
73
if not isinstance(class_weight, dict):
74
- raise ValueError("class_weight must be dict, 'auto', or None,"
+ raise ValueError("class_weight must be dict, 'balanced', or None,"
75
" got: %r" % class_weight)
76
for c in class_weight:
77
i = np.searchsorted(classes, c)
0 commit comments