类 NormalizedPolyKernel
java.lang.Object
weka.classifiers.functions.supportVector.Kernel
weka.classifiers.functions.supportVector.CachedKernel
weka.classifiers.functions.supportVector.PolyKernel
weka.classifiers.functions.supportVector.NormalizedPolyKernel
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
The normalized polynomial kernel.
K(x,y) = <x,y>/sqrt(<x,x><y,y>) where <x,y> = PolyKernel(x,y) Valid options are:
K(x,y) = <x,y>/sqrt(<x,x><y,y>) where <x,y> = PolyKernel(x,y) 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: 1.8 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器构造器说明default constructor - does nothingNormalizedPolyKernel
(Instances dataset, int cacheSize, double exponent, boolean lowerOrder) Creates a newNormalizedPolyKernel
instance. -
方法概要
修饰符和类型方法说明double
Computes the result of the kernel function for two instances.Returns the revision string.Returns a string describing the kernelvoid
setExponent
(double value) Sets the exponent value (must be different from 1.0).toString()
returns a string representation for the Kernel从类继承的方法 weka.classifiers.functions.supportVector.PolyKernel
clean, exponentTipText, getCapabilities, getExponent, getOptions, getUseLowerOrder, listOptions, setOptions, setUseLowerOrder, useLowerOrderTipText
从类继承的方法 weka.classifiers.functions.supportVector.CachedKernel
buildKernel, cacheSizeTipText, getCacheSize, numCacheHits, numEvals, setCacheSize
从类继承的方法 weka.classifiers.functions.supportVector.Kernel
checksTurnedOffTipText, debugTipText, forName, getChecksTurnedOff, getDebug, makeCopies, makeCopy, setChecksTurnedOff, setDebug
-
构造器详细资料
-
NormalizedPolyKernel
public NormalizedPolyKernel()default constructor - does nothing -
NormalizedPolyKernel
public NormalizedPolyKernel(Instances dataset, int cacheSize, double exponent, boolean lowerOrder) throws Exception Creates a newNormalizedPolyKernel
instance.- 参数:
dataset
- 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
-
-
方法详细资料
-
globalInfo
Returns a string describing the kernel- 覆盖:
globalInfo
在类中PolyKernel
- 返回:
- a description suitable for displaying in the explorer/experimenter gui
-
eval
Computes the result of the kernel function for two instances. If id1 == -1, eval use inst1 instead of an instance in the dataset. Redefines the eval function of PolyKernel.- 覆盖:
eval
在类中CachedKernel
- 参数:
id1
- the index of the first instance in the datasetid2
- the index of the second instance in the datasetinst1
- the instance corresponding to id1 (used if id1 == -1)- 返回:
- the result of the kernel function
- 抛出:
Exception
- if something goes wrong
-
setExponent
public void setExponent(double value) Sets the exponent value (must be different from 1.0).- 覆盖:
setExponent
在类中PolyKernel
- 参数:
value
- the exponent value
-
toString
returns a string representation for the Kernel- 覆盖:
toString
在类中PolyKernel
- 返回:
- a string representaiton of the kernel
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中PolyKernel
- 返回:
- the revision
-