8000 DOC Correct shape of coef_ in LinearSVC (#14353) · scikit-learn/scikit-learn@36b66ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 36b66ba

Browse files
qinhanmin2014rth
authored andcommitted
DOC Correct shape of coef_ in LinearSVC (#14353)
1 parent ef8e3c9 commit 36b66ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/svm/classes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ class LinearSVC(BaseEstimator, LinearClassifierMixin,
101101
102102
Attributes
103103
----------
104-
coef_ : array, shape = [n_features] if n_classes == 2 else [n_classes, n_features]
104+
coef_ : array, shape = [1, n_features] if n_classes == 2 \
105+
else [n_classes, n_features]
105106
Weights assigned to the features (coefficients in the primal
106107
problem). This is only available in the case of a linear kernel.
107108

0 commit comments

Comments
 (0)
0