Skip to content

Commit abbdc91

Browse files
zdgriffithrth
authored andcommitted
DOC Fix description of SVC intercept_ shape in user guide (scikit-learn#12070)
1 parent 43c8563 commit abbdc91

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/modules/svm.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,12 @@ Each row of the coefficients corresponds to one of the ``n_class`` many
164164
order of the "one" class.
165165

166166
In the case of "one-vs-one" :class:`SVC`, the layout of the attributes
167-
is a little more involved. In the case of having a linear kernel,
168-
The layout of ``coef_`` and ``intercept_`` is similar to the one
169-
described for :class:`LinearSVC` described above, except that the shape of
170-
``coef_`` is ``[n_class * (n_class - 1) / 2, n_features]``, corresponding to as
171-
many binary classifiers. The order for classes
167+
is a little more involved. In the case of having a linear kernel, the
168+
attributes ``coef_`` and ``intercept_`` have the shape
169+
``[n_class * (n_class - 1) / 2, n_features]`` and
170+
``[n_class * (n_class - 1) / 2]`` respectively. This is similar to the
171+
layout for :class:`LinearSVC` described above, with each row now corresponding
172+
to a binary classifier. The order for classes
172173
0 to n is "0 vs 1", "0 vs 2" , ... "0 vs n", "1 vs 2", "1 vs 3", "1 vs n", . .
173174
. "n-1 vs n".
174175

0 commit comments

Comments
 (0)