Skip to content

adding SVC documentation references #12217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions sklearn/svm/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,22 @@ class SVC(BaseSVC):
intercept_ : array, shape = [n_class * (n_class-1) / 2]
Constants in decision function.

fit_status_ : int
0 if correctly fitted,
1 otherwise (will raise warning)

probA_, probB_ : array, shape = [n_class * (n_class-1) / 2]

If probability=True, the parameters learned in Platt scaling to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation seems off. Also you can refer to the user guide that also explains that, though it's good to also mention the paper.

produce probability estimates from decision values. If
probability=False, an empty array. Platt scaling uses the logistic
function
``1 / (1 + exp(decision_value * probA_ + probB_))``
where ``probA_`` and ``probB_`` are learned from the dataset. For more
information on the multiclass case and training procedure see section
8 of LIBSVM: A Library for Support Vector Machines (in References)
for more.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for more is repeated twice here


Examples
--------
>>> import numpy as np
Expand All @@ -578,6 +594,11 @@ class SVC(BaseSVC):
implemented using liblinear. Check the See also section of
LinearSVC for more comparison element.

References
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoud Platt (2000) be added as well? i.e. "Probabilistic outputs for support vector machines and comparison to regularizedlikelihood methods."

--------
[1] LIBSVM
A Library for Support Vector Machines
<http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf>
"""

_impl = 'c_svc'
Expand Down