diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-01-08 19:38:22 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2018-01-08 19:38:22 +0100 |
| commit | dff6f71b2185b6341bddbd0732a2833cfd953202 (patch) | |
| tree | a701722a38ebef1926aed833d08ae9d7cdff17eb /docs | |
| parent | Update submodule (diff) | |
| download | pygensvm-dff6f71b2185b6341bddbd0732a2833cfd953202.tar.gz pygensvm-dff6f71b2185b6341bddbd0732a2833cfd953202.zip | |
add documentation for kernels in GenSVM
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/index.rst | 8 | ||||
| -rw-r--r-- | docs/kernels.rst | 22 |
2 files changed, 30 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst index 7a28f0e..6064b56 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -20,4 +20,12 @@ GenSVMGridSearchCV .. include:: ./cls_gridsearch.rst +Functions +--------- + +.. autofunction:: gensvm.gridsearch.load_default_grid + +.. include:: ./kernels.rst + .. include:: ../CHANGELOG.rst + diff --git a/docs/kernels.rst b/docs/kernels.rst new file mode 100644 index 0000000..479b6c0 --- /dev/null +++ b/docs/kernels.rst @@ -0,0 +1,22 @@ +Kernels in GenSVM +----------------- + +Kernels in GenSVM are implemented as follows. + +- Radial Basis Function (RBF): + +.. math:: + + k(x_1, x_2) = \exp(-\gamma \| x_1 - x_2 \|^2 ) + +- Polynomial: + +.. math:: + + k(x_1, x_2) = (\gamma x_1'x_2 + coef)^{degree} + +- Sigmoid: + +.. math:: + + k(x_1, x_2) = \tanh(\gamma x_1'x_2 + coef) |
