File: kernel.txt

package info (click to toggle)
mlpy 2.2.0~dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 968 kB
  • ctags: 851
  • sloc: ansic: 6,056; python: 3,316; makefile: 101
file content (39 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (2)
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