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)
m_exponent, m_lowerOrderm_cacheHits, m_cacheSize, m_cacheSlots, m_kernelEvals, m_kernelMatrix, m_keys, m_numInsts, m_storagem_ChecksTurnedOff, m_data, m_Debug| 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 |
|---|---|
protected double |
evaluate(int id1,
int id2,
Instance inst1)
This method is overridden in subclasses to implement specific kernels.
|
Capabilities |
getCapabilities()
Returns the Capabilities of this kernel.
|
Capabilities |
getMultiInstanceCapabilities()
Returns the capabilities of this multi-instance kernel for the
relational data.
|
String |
getRevision()
Returns the revision string.
|
exponentTipText, getExponent, getOptions, getUseLowerOrder, globalInfo, listOptions, setExponent, setOptions, setUseLowerOrder, toString, useLowerOrderTipTextbuildKernel, cacheSizeTipText, clean, dotProd, eval, getCacheSize, initVars, numCacheHits, numEvals, setCacheSizechecksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebugpublic MIPolyKernel()
public MIPolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder) throws 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 termsException - if something goes wrongprotected double evaluate(int id1,
int id2,
Instance inst1)
throws Exception
CachedKernelevaluate in class PolyKernelid1 - the index of instance 1id2 - the index of instance 2inst1 - the instance 1 objectException - if something goes wrongpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class PolyKernelCapabilitiespublic Capabilities getMultiInstanceCapabilities()
getMultiInstanceCapabilities in interface MultiInstanceCapabilitiesHandlerCapabilitiespublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class PolyKernelCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.