Skip to content

Commit 2ab1961

Browse files
daten-kiekeramueller
authored andcommitted
1 parent 3a3a78a commit 2ab1961

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

sklearn/svm/classes.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,21 @@ class SVC(BaseSVC):
553553
intercept_ : array, shape = [n_class * (n_class-1) / 2]
554554
Constants in decision function.
555555
556+
fit_status_ : int
557+
0 if correctly fitted, 1 otherwise (will raise warning)
558+
559+
probA_ : array, shape = [n_class * (n_class-1) / 2]
560+
probB_ : array, shape = [n_class * (n_class-1) / 2]
561+
If probability=True, the parameters learned in Platt scaling to
562+
produce probability estimates from decision values. If
563+
probability=False, an empty array. Platt scaling uses the logistic
564+
function
565+
``1 / (1 + exp(decision_value * probA_ + probB_))``
566+
where ``probA_`` and ``probB_`` are learned from the dataset. For more
567+
information on the multiclass case and training procedure see section
568+
8 of LIBSVM: A Library for Support Vector Machines (in References)
569+
for more.
570+
556571
Examples
557572
--------
558573
>>> import numpy as np
@@ -578,6 +593,11 @@ class SVC(BaseSVC):
578593
implemented using liblinear. Check the See also section of
579594
LinearSVC for more comparison element.
580595
596+
Notes
597+
-----
598+
**References:**
599+
`LIBSVM: A Library for Support Vector Machines
600+
<http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf>`__
581601
"""
582602

583603
_impl = 'c_svc'
@@ -740,6 +760,12 @@ class NuSVC(BaseSVC):
740760
LinearSVC
741761
Scalable linear Support Vector Machine for classification using
742762
liblinear.
763+
764+
Notes
765+
-----
766+
**References:**
767+
`LIBSVM: A Library for Support Vector Machines
768+
<http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf>`__
743769
"""
744770

745771
_impl = 'nu_svc'
@@ -863,6 +889,12 @@ class SVR(BaseLibSVM, RegressorMixin):
863889
LinearSVR
864890
Scalable Linear Support Vector Machine for regression
865891
implemented using liblinear.
892+
893+
Notes
894+
-----
895+
**References:**
896+
`LIBSVM: A Library for Support Vector Machines
897+
<http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf>`__
866898
"""
867899

868900
_impl = 'epsilon_svr'
@@ -984,6 +1016,12 @@ class NuSVR(BaseLibSVM, RegressorMixin):
9841016
9851017
SVR
9861018
epsilon Support Vector Machine for regression implemented with libsvm.
1019+
1020+
Notes
1021+
-----
1022+
**References:**
1023+
`LIBSVM: A Library for Support Vector Machines
1024+
<http://www.csie.ntu.edu.tw/~cjlin/papers/libsvm.pdf>`__
9871025
"""
9881026

9891027
_impl = 'nu_svr'

0 commit comments

Comments
 (0)