1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Kernels
=======
Methods:
.. method:: .matrix(x)
Return the kernel matrix :math:`K_{ij} = k(x_i, x_j)`.
.. method:: .vector(a, x)
Return the kernel vector :math:`K_i = k(x_i, a)`.
Linear Kernel
-------------
.. autoclass:: mlpy.KernelLinear
.. math::
K(x, x') = x \cdot x'
Gaussian Kernel
---------------
.. autoclass:: mlpy.KernelGaussian
.. math::
K(x, x') = e^{-\frac{\|x - x'\|}{2 \sigma^2}}
Polynomial Kernel
-----------------
.. autoclass:: mlpy.KernelPolynomial
.. math::
K(x, x') = {(x \cdot x' + 1)}^d
|