Skip to content

Commit 0a3a677

Browse files
committed
DOC SVMs take string class labels as well as integers
http://stackoverflow.com/a/24512272/166749
1 parent e14b716 commit 0a3a677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/svm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ assumed to be linear. It also lacks some of the members of
6767

6868
As other classifiers, :class:`SVC`, :class:`NuSVC` and
6969
:class:`LinearSVC` take as input two arrays: an array X of size ``[n_samples,
70-
n_features]`` holding the training samples, and an array Y of integer values,
71-
size ``[n_samples]``, holding the class labels for the training samples::
70+
n_features]`` holding the training samples, and an array y of class labels
71+
(strings or integers), size ``[n_samples]``::
7272

7373

7474
>>> from sklearn import svm

0 commit comments

Comments
 (0)