public class PolyKernel extends CachedKernel
-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 |
---|
PolyKernel()
default constructor - does nothing.
|
PolyKernel(Instances data,
int cacheSize,
double exponent,
boolean lowerOrder)
Creates a new
PolyKernel instance. |
Modifier and Type | Method and Description |
---|---|
void |
clean()
Frees the cache used by the kernel.
|
java.lang.String |
exponentTipText()
Returns the tip text for this property
|
Capabilities |
getCapabilities()
Returns the Capabilities of this kernel.
|
double |
getExponent()
Gets the exponent value.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Kernel.
|
java.lang.String |
getRevision()
Returns the revision string.
|
boolean |
getUseLowerOrder()
Gets whether lower-order terms are used.
|
java.lang.String |
globalInfo()
Returns a string describing the kernel
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
void |
setExponent(double value)
Sets the exponent value.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setUseLowerOrder(boolean value)
Sets whether to use lower-order terms.
|
java.lang.String |
toString()
returns a string representation for the Kernel
|
java.lang.String |
useLowerOrderTipText()
Returns the tip text for this property
|
buildKernel, cacheSizeTipText, eval, getCacheSize, numCacheHits, numEvals, setCacheSize
checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug
public PolyKernel()
public PolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder) throws java.lang.Exception
PolyKernel
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 void clean()
clean
in class CachedKernel
public java.lang.String globalInfo()
globalInfo
in class Kernel
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class CachedKernel
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-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)
setOptions
in interface OptionHandler
setOptions
in class CachedKernel
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class CachedKernel
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Kernel
Capabilities
public void setExponent(double value)
value
- the exponent valuepublic double getExponent()
public java.lang.String exponentTipText()
public void setUseLowerOrder(boolean value)
value
- true if lower-order terms will be usedpublic boolean getUseLowerOrder()
public java.lang.String useLowerOrderTipText()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Kernel