Class MIRBFKernel
java.lang.Object
weka.classifiers.functions.supportVector.Kernel
weka.classifiers.functions.supportVector.CachedKernel
weka.classifiers.functions.supportVector.RBFKernel
weka.classifiers.mi.supportVector.MIRBFKernel
- All Implemented Interfaces:
Serializable,CapabilitiesHandler,MultiInstanceCapabilitiesHandler,OptionHandler,RevisionHandler
The RBF kernel. K(x, y) = e^-(gamma * <x-y, x-y>^2)
Valid options are:
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-G <num> The Gamma parameter. (default: 0.01)
- Version:
- $Revision: 9144 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz), Shane Legg (shane@intelligenesis.net) (sparse vector code), Stuart Inglis (stuart@reeltwo.com) (sparse vector code), J. Lindgren (jtlindgr{at}cs.helsinki.fi) (RBF kernel), Lin Dong (ld21@cs.waikato.ac.nz) (MIkernel)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptiondefault constructor - does nothing.MIRBFKernel(Instances data, int cacheSize, double gamma) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildKernel(Instances data) builds the kernel with the given data.Returns the Capabilities of this kernel.Returns the capabilities of this multi-instance kernel for the relational data.Returns the revision string.Methods inherited from class weka.classifiers.functions.supportVector.RBFKernel
gammaTipText, getGamma, getOptions, globalInfo, listOptions, setGamma, setOptions, toStringMethods inherited from class weka.classifiers.functions.supportVector.CachedKernel
cacheSizeTipText, clean, eval, getCacheSize, numCacheHits, numEvals, setCacheSizeMethods inherited from class weka.classifiers.functions.supportVector.Kernel
checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug
-
Constructor Details
-
MIRBFKernel
public MIRBFKernel()default constructor - does nothing. -
MIRBFKernel
Constructor.- Parameters:
data- the data to usecacheSize- the size of the cachegamma- the bandwidth- Throws:
Exception- if something goes wrong
-
-
Method Details
-
getCapabilities
Returns the Capabilities of this kernel.- Specified by:
getCapabilitiesin interfaceCapabilitiesHandler- Overrides:
getCapabilitiesin classRBFKernel- Returns:
- the capabilities of this object
- See Also:
-
getMultiInstanceCapabilities
Returns the capabilities of this multi-instance kernel for the relational data.- Specified by:
getMultiInstanceCapabilitiesin interfaceMultiInstanceCapabilitiesHandler- Returns:
- the capabilities of this object
- See Also:
-
buildKernel
builds the kernel with the given data. Initializes the kernel cache. The actual size of the cache in bytes is (64 * cacheSize).- Overrides:
buildKernelin classRBFKernel- Parameters:
data- the data to base the kernel on- Throws:
Exception- if something goes wrong
-
getRevision
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Overrides:
getRevisionin classRBFKernel- Returns:
- the revision
-