Skip to content

Commit e58764f

Browse files
committed
DOC more explicit parameter descriptions in make_multilabel_classification
1 parent 0f89415 commit e58764f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

sklearn/datasets/samples_generator.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,15 @@ def make_multilabel_classification(n_samples=100, n_features=20, n_classes=5,
269269
The number of classes of the classification problem.
270270
271271
n_labels : int, optional (default=2)
272-
The average number of labels per instance. Number of labels follows
273-
a Poisson distribution that never takes the value 0.
272+
The average number of labels per instance. More precisely, the number
273+
of labels per sample is drawn from a Poisson distribution with
274+
``n_labels`` as its expected value, but samples are bounded (using
275+
rejection sampling) by ``n_classes``, and must be nonzero if
276+
``allow_unlabeled`` is False.
274277
275278
length : int, optional (default=50)
276-
Sum of the features (number of words if documents).
279+
The sum of the features (number of words if documents) is drawn from
280+
a Poisson distribution with this expected value.
277281
278282
allow_unlabeled : bool, optional (default=True)
279283
If ``True``, some instances might not belong to any class.

0 commit comments

Comments
 (0)