|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.functions.supportVector.Kernel
weka.classifiers.functions.supportVector.CachedKernel
weka.classifiers.functions.supportVector.PolyKernel
public class PolyKernel
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 <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 Summary | |
---|---|
PolyKernel()
default constructor - does nothing. |
|
PolyKernel(Instances data,
int cacheSize,
double exponent,
boolean lowerOrder)
Creates a new PolyKernel instance. |
Method Summary | |
---|---|
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 |
Methods inherited from class weka.classifiers.functions.supportVector.CachedKernel |
---|
buildKernel, cacheSizeTipText, clean, eval, getCacheSize, numCacheHits, numEvals, setCacheSize |
Methods inherited from class weka.classifiers.functions.supportVector.Kernel |
---|
checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 terms
java.lang.Exception
- if something goes wrongMethod Detail |
---|
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 strings
java.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |