类 PolyKernel
java.lang.Object
weka.classifiers.functions.supportVector.Kernel
weka.classifiers.functions.supportVector.CachedKernel
weka.classifiers.functions.supportVector.PolyKernel
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
- 直接已知子类:
MIPolyKernel
,NormalizedPolyKernel
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)
- 版本:
- $Revision: 9993 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz), Shane Legg (shane@intelligenesis.net) (sparse vector code), Stuart Inglis (stuart@reeltwo.com) (sparse vector code)
- 另请参阅:
-
构造器概要
构造器构造器说明default constructor - does nothing.PolyKernel
(Instances data, int cacheSize, double exponent, boolean lowerOrder) Creates a newPolyKernel
instance. -
方法概要
修饰符和类型方法说明void
clean()
Frees the cache used by the kernel.Returns the tip text for this propertyReturns the Capabilities of this kernel.double
Gets the exponent value.String[]
Gets the current settings of the Kernel.Returns the revision string.boolean
Gets whether lower-order terms are used.Returns a string describing the kernelReturns an enumeration describing the available options.void
setExponent
(double value) Sets the exponent value.void
setOptions
(String[] options) Parses a given list of options.void
setUseLowerOrder
(boolean value) Sets whether to use lower-order terms.toString()
returns a string representation for the KernelReturns the tip text for this property从类继承的方法 weka.classifiers.functions.supportVector.CachedKernel
buildKernel, cacheSizeTipText, eval, getCacheSize, numCacheHits, numEvals, setCacheSize
从类继承的方法 weka.classifiers.functions.supportVector.Kernel
checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug
-
构造器详细资料
-
PolyKernel
public PolyKernel()default constructor - does nothing. -
PolyKernel
public PolyKernel(Instances data, int cacheSize, double exponent, boolean lowerOrder) throws Exception Creates a newPolyKernel
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- 抛出:
Exception
- if something goes wrong
-
-
方法详细资料
-
clean
public void clean()Frees the cache used by the kernel.- 覆盖:
clean
在类中CachedKernel
-
globalInfo
Returns a string describing the kernel- 指定者:
globalInfo
在类中Kernel
- 返回:
- a description suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中CachedKernel
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. 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)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中CachedKernel
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the Kernel.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中CachedKernel
- 返回:
- an array of strings suitable for passing to setOptions
-
getCapabilities
Returns the Capabilities of this kernel.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Kernel
- 返回:
- the capabilities of this object
- 另请参阅:
-
setExponent
public void setExponent(double value) Sets the exponent value.- 参数:
value
- the exponent value
-
getExponent
public double getExponent()Gets the exponent value.- 返回:
- the exponent value
-
exponentTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setUseLowerOrder
public void setUseLowerOrder(boolean value) Sets whether to use lower-order terms.- 参数:
value
- true if lower-order terms will be used
-
getUseLowerOrder
public boolean getUseLowerOrder()Gets whether lower-order terms are used.- 返回:
- true if lower-order terms are used
-
useLowerOrderTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
toString
returns a string representation for the Kernel -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Kernel
- 返回:
- the revision
-