MIPolyKernel (original) (raw)
java.lang.Object
- weka.classifiers.functions.supportVector.Kernel
- weka.classifiers.functions.supportVector.CachedKernel
- weka.classifiers.functions.supportVector.PolyKernel
* * weka.classifiers.mi.supportVector.MIPolyKernel
- weka.classifiers.functions.supportVector.PolyKernel
- weka.classifiers.functions.supportVector.CachedKernel
All Implemented Interfaces:
java.io.Serializable, CapabilitiesHandler, MultiInstanceCapabilitiesHandler, OptionHandler, RevisionHandler
public class MIPolyKernel
extends PolyKernel
implements MultiInstanceCapabilitiesHandler
The polynomial kernel : K(x, y) = <x, y>^p or K(x, y) = (<x, y>+1)^p
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
The size of the cache (a prime number), 0 for full cache and
-1 to turn it off.
(default: 250007)
-E
The Exponent to use.
(default: 1.0)
-L
Use lower-order terms.
(default: no)
Version: Revision:10036Revision: 10036 Revision:10036
Author:
Eibe Frank (eibe@cs.waikato.ac.nz), Shane Legg (shane@intelligenesis.net) (sparse vector code), Stuart Inglis (stuart@reeltwo.com) (sparse vector code), Lin Dong (ld21@cs.waikato.ac.nz) (MIkernel)
See Also:
Serialized Form
Constructor Summary
Constructors
Constructor and Description MIPolyKernel() default constructor - does nothing. MIPolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder) Creates a new MIPolyKernel instance. Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description void clean() Frees the cache used by the kernel. Capabilities getCapabilities() Returns the Capabilities of this kernel. Capabilities getMultiInstanceCapabilities() Returns the capabilities of this multi-instance kernel for the relational data. java.lang.String getRevision() Returns the revision string. * ### Methods inherited from class weka.classifiers.functions.supportVector.[PolyKernel](../../../../weka/classifiers/functions/supportVector/PolyKernel.html "class in weka.classifiers.functions.supportVector") `[exponentTipText](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#exponentTipText--), [getExponent](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#getExponent--), [getOptions](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#getOptions--), [getUseLowerOrder](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#getUseLowerOrder--), [globalInfo](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#globalInfo--), [listOptions](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#listOptions--), [setExponent](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#setExponent-double-), [setOptions](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#setOptions-java.lang.String:A-), [setUseLowerOrder](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#setUseLowerOrder-boolean-), [toString](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#toString--), [useLowerOrderTipText](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#useLowerOrderTipText--)` * ### Methods inherited from class weka.classifiers.functions.supportVector.[CachedKernel](../../../../weka/classifiers/functions/supportVector/CachedKernel.html "class in weka.classifiers.functions.supportVector") `[buildKernel](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#buildKernel-weka.core.Instances-), [cacheSizeTipText](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#cacheSizeTipText--), [eval](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#eval-int-int-weka.core.Instance-), [getCacheSize](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#getCacheSize--), [numCacheHits](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#numCacheHits--), [numEvals](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#numEvals--), [setCacheSize](../../../../weka/classifiers/functions/supportVector/CachedKernel.html#setCacheSize-int-)` * ### Methods inherited from class weka.classifiers.functions.supportVector.[Kernel](../../../../weka/classifiers/functions/supportVector/Kernel.html "class in weka.classifiers.functions.supportVector") `[checksTurnedOffTipText](../../../../weka/classifiers/functions/supportVector/Kernel.html#checksTurnedOffTipText--), [debugTipText](../../../../weka/classifiers/functions/supportVector/Kernel.html#debugTipText--), [forName](../../../../weka/classifiers/functions/supportVector/Kernel.html#forName-java.lang.String-java.lang.String:A-), [getChecksTurnedOff](../../../../weka/classifiers/functions/supportVector/Kernel.html#getChecksTurnedOff--), [getDebug](../../../../weka/classifiers/functions/supportVector/Kernel.html#getDebug--), [makeCopies](../../../../weka/classifiers/functions/supportVector/Kernel.html#makeCopies-weka.classifiers.functions.supportVector.Kernel-int-), [makeCopy](../../../../weka/classifiers/functions/supportVector/Kernel.html#makeCopy-weka.classifiers.functions.supportVector.Kernel-), [setChecksTurnedOff](../../../../weka/classifiers/functions/supportVector/Kernel.html#setChecksTurnedOff-boolean-), [setDebug](../../../../weka/classifiers/functions/supportVector/Kernel.html#setDebug-boolean-)` * ### Methods inherited from class java.lang.Object `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`
Constructor Detail
* #### MIPolyKernel public MIPolyKernel() default constructor - does nothing. * #### MIPolyKernel public MIPolyKernel([Instances](../../../../weka/core/Instances.html "class in weka.core") data, int cacheSize, double exponent, boolean lowerOrder) throws java.lang.Exception Creates a new `MIPolyKernel` instance. Parameters: `data` \- the training dataset used. `cacheSize` \- the size of the cache (a prime number) `exponent` \- the exponent to use `lowerOrder` \- whether to use lower-order terms Throws: `java.lang.Exception` \- if something goes wrong
Method Detail
* #### getCapabilities public [Capabilities](../../../../weka/core/Capabilities.html "class in weka.core") getCapabilities() Returns the Capabilities of this kernel. Specified by: `[getCapabilities](../../../../weka/core/CapabilitiesHandler.html#getCapabilities--)` in interface `[CapabilitiesHandler](../../../../weka/core/CapabilitiesHandler.html "interface in weka.core")` Overrides: `[getCapabilities](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#getCapabilities--)` in class `[PolyKernel](../../../../weka/classifiers/functions/supportVector/PolyKernel.html "class in weka.classifiers.functions.supportVector")` Returns: the capabilities of this object See Also: [Capabilities](../../../../weka/core/Capabilities.html "class in weka.core") * #### getMultiInstanceCapabilities public [Capabilities](../../../../weka/core/Capabilities.html "class in weka.core") getMultiInstanceCapabilities() Returns the capabilities of this multi-instance kernel for the relational data. Specified by: `[getMultiInstanceCapabilities](../../../../weka/core/MultiInstanceCapabilitiesHandler.html#getMultiInstanceCapabilities--)` in interface `[MultiInstanceCapabilitiesHandler](../../../../weka/core/MultiInstanceCapabilitiesHandler.html "interface in weka.core")` Returns: the capabilities of this object See Also: [Capabilities](../../../../weka/core/Capabilities.html "class in weka.core") * #### clean public void clean() Frees the cache used by the kernel. Overrides: `[clean](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#clean--)` in class `[PolyKernel](../../../../weka/classifiers/functions/supportVector/PolyKernel.html "class in weka.classifiers.functions.supportVector")` * #### getRevision public java.lang.String getRevision() Returns the revision string. Specified by: `[getRevision](../../../../weka/core/RevisionHandler.html#getRevision--)` in interface `[RevisionHandler](../../../../weka/core/RevisionHandler.html "interface in weka.core")` Overrides: `[getRevision](../../../../weka/classifiers/functions/supportVector/PolyKernel.html#getRevision--)` in class `[PolyKernel](../../../../weka/classifiers/functions/supportVector/PolyKernel.html "class in weka.classifiers.functions.supportVector")` Returns: the revision