All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.functions.supportVector.RBFKernel

java.lang.Object
    |
    +----weka.classifiers.functions.supportVector.Kernel
            |
            +----weka.classifiers.functions.supportVector.RBFKernel

public class RBFKernel
extends Kernel
The RBF kernel. K(x, y) = e^-(gamma * ^2)

Version:
$$
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)
Author:
Shane Legg (shane@intelligenesis.net) (sparse vector code)
Author:
Stuart Inglis (stuart@reeltwo.com) (sparse vector code)
Author:
J. Lindgren (jtlindgr{at}cs.helsinki.fi) (RBF kernel)

Constructor Index

 o RBFKernel(Instances, int, double)
Constructor.

Method Index

 o clean()
Frees the cache used by the kernel.
 o eval(int, int, Instance)
Implements the abstract function of Kernel.
 o numEvals()
Returns the number of time Eval has been called.

Constructor Detail

 o RBFKernel
public RBFKernel(Instances data,
                 int cacheSize,
                 double gamma) throws java.lang.Exception
          Constructor. Initializes m_kernelPrecalc[].

Method Detail

 o eval
public double eval(int id1,
                   int id2,
                   Instance inst1) throws java.lang.Exception
          Implements the abstract function of Kernel.
Overrides:
eval in class Kernel
 o clean
public void clean()
          Frees the cache used by the kernel.
Overrides:
clean in class Kernel
 o numEvals
public int numEvals()
          Returns the number of time Eval has been called.
Returns:
the number of kernel evaluation.
Overrides:
numEvals in class Kernel

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home