Skip to content

Commit fb2453d

Browse files
committed
Merge pull request scikit-learn#783 from dwf/svm_docs_minor
Minor tweaks to the SVM documentation
2 parents 5942665 + f402556 commit fb2453d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

doc/modules/svm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,10 @@ The *kernel function* can be any of the following:
396396
* polynomial: :math:`(\gamma <x, x'> + r)^d`. `d` is specified by
397397
keyword ``degree``, `r` by ``coef0``.
398398

399-
* rbf (:math:`exp(-\gamma |x-x'|^2), \gamma > 0`). :math:`\gamma` is
399+
* rbf (:math:`\exp(-\gamma |x-x'|^2), \gamma > 0`). :math:`\gamma` is
400400
specified by keyword ``gamma``.
401401

402-
* sigmoid (:math:`tanh(<x_i,x_j> + r)`), where `r` is specified by
402+
* sigmoid (:math:`\tanh(<x_i,x_j> + r)`), where `r` is specified by
403403
``coef0``.
404404

405405
Different kernels are specified by keyword kernel at initialization::

sklearn/svm/classes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ class SVC(BaseLibSVM, ClassifierMixin):
149149
150150
The multiclass support is handled according to a one-vs-one scheme.
151151
152+
For details on the precise mathematical formulation of the provided
153+
kernel functions and how `gamma`, `coef0` and `degree` affect each,
154+
see the corresponding section in the narrative documentation:
155+
:ref:`svm_kernels`.
156+
157+
.. The narrative documentation is available at http://scikit-learn.org/
158+
152159
Parameters
153160
----------
154161
C : float or None, optional (default=None)

0 commit comments

Comments
 (0)