Skip to content

Commit

Permalink
DOC fix SVC and NuSVC coef_ shape in the docstring (#11660)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinjalali authored and jnothman committed Jul 24, 2018
1 parent 72b2ed9 commit 0395b32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/svm/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ class SVC(BaseSVC):
non-trivial. See the section about multi-class classification in the
SVM section of the User Guide for details.
coef_ : array, shape = [n_class-1, n_features]
coef_ : array, shape = [n_class * (n_class-1) / 2, n_features]
Weights assigned to the features (coefficients in the primal
problem). This is only available in the case of a linear kernel.
Expand Down Expand Up @@ -707,7 +707,7 @@ class NuSVC(BaseSVC):
non-trivial. See the section about multi-class classification in
the SVM section of the User Guide for details.
coef_ : array, shape = [n_class-1, n_features]
coef_ : array, shape = [n_class * (n_class-1) / 2, n_features]
Weights assigned to the features (coefficients in the primal
problem). This is only available in the case of a linear kernel.
Expand Down

0 comments on commit 0395b32

Please sign in to comment.