public class MIPolyKernel extends PolyKernel implements MultiInstanceCapabilitiesHandler
-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)
-E <num> The Exponent to use. (default: 1.0)
-L Use lower-order terms. (default: no)
Constructor and Description |
---|
MIPolyKernel()
default constructor - does nothing.
|
MIPolyKernel(Instances data,
int cacheSize,
double exponent,
boolean lowerOrder)
Creates a new
MIPolyKernel instance. |
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.
|
exponentTipText, getExponent, getOptions, getUseLowerOrder, globalInfo, listOptions, setExponent, setOptions, setUseLowerOrder, toString, useLowerOrderTipText
buildKernel, cacheSizeTipText, eval, getCacheSize, numCacheHits, numEvals, setCacheSize
checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug
public MIPolyKernel()
public MIPolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder) throws java.lang.Exception
MIPolyKernel
instance.data
- the training dataset used.cacheSize
- the size of the cache (a prime number)exponent
- the exponent to uselowerOrder
- whether to use lower-order termsjava.lang.Exception
- if something goes wrongpublic Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class PolyKernel
Capabilities
public Capabilities getMultiInstanceCapabilities()
getMultiInstanceCapabilities
in interface MultiInstanceCapabilitiesHandler
Capabilities
public void clean()
clean
in class PolyKernel
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class PolyKernel