8000 DOC changed docstring to be more clear. · scikit-learn/scikit-learn@924b178 · GitHub
[go: up one dir, main page]

Skip to content

Commit 924b178

Browse files
committed
DOC changed docstring to be more clear.
1 parent 6f1dd9c commit 924b178

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sklearn/utils/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ def compute_class_weight(class_weight, classes, y):
359359
List of the classes occuring in the data, as given by
360360
``np.unique(y_org)`` with ``y_org`` the original class labels.
361361
y : array-like, shape=(n_samples,), dtype=int
362-
Array of class-indices for 0 to n_classes.
362+
Array of class indices per sample;
363+
0 <= y[i] < n_classes for i in range(n_samples).
364+
363365
364366
Returns
365367
-------

0 commit comments

Comments
 (0)
0