-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
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. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. for more is repeated twice here |
||
|
||
Examples | ||
-------- | ||
>>> import numpy as np | ||
|
@@ -578,6 +594,11 @@ class SVC(BaseSVC): | |
implemented using liblinear. Check the See also section of | ||
LinearSVC for more comparison element. | ||
|
||
References | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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' | ||
|
There was a problem hiding this comment.
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.