8000 Merge pull request #5200 from jackzhang84/add_dump_svmlight_file_comment · scikit-learn/scikit-learn@3f9d33c · GitHub
[go: up one dir, main page]

Skip to content

Commit 3f9d33c

Browse files
committed
Merge pull request #5200 from jackzhang84/add_dump_svmlight_file_comment
added comments for y in dump_svmlight_file() method
2 parents cb591e1 + 9d01a1c commit 3f9d33c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sklearn/datasets/svmlight_format.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,9 @@ def dump_svmlight_file(X, y, f, zero_based=True, comment=None, query_id=None,
341341
Training vectors, where n_samples is the number of samples and
342342
n_features is the number of features.
343343
344-
y : array-like, shape = [n_samples]
345-
Target values.
344+
y : array-like, shape = [n_samples] or [n_samples, n_labels]
345+
Target values. Class labels must be an integer or float, or array-like
346+
objects of integer or float for multilabel classifications.
346347
347348
f : string or file-like in binary mode
348349
If string, specifies the path that will contain the data.

0 commit comments

Comments
 (0)
0