类 Winnow
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.functions.Winnow
- 所有已实现的接口:
Serializable
,Cloneable
,UpdateableClassifier
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
Implements Winnow and Balanced Winnow algorithms by Littlestone.
For more information, see
N. Littlestone (1988). Learning quickly when irrelevant attributes are abound: A new linear threshold algorithm. Machine Learning. 2:285-318.
N. Littlestone (1989). Mistake bounds and logarithmic linear-threshold learning algorithms. University of California, Santa Cruz.
Does classification for problems with nominal attributes (which it converts into binary attributes). BibTeX:
For more information, see
N. Littlestone (1988). Learning quickly when irrelevant attributes are abound: A new linear threshold algorithm. Machine Learning. 2:285-318.
N. Littlestone (1989). Mistake bounds and logarithmic linear-threshold learning algorithms. University of California, Santa Cruz.
Does classification for problems with nominal attributes (which it converts into binary attributes). BibTeX:
@article{Littlestone1988, author = {N. Littlestone}, journal = {Machine Learning}, pages = {285-318}, title = {Learning quickly when irrelevant attributes are abound: A new linear threshold algorithm}, volume = {2}, year = {1988} } @techreport{Littlestone1989, address = {University of California, Santa Cruz}, author = {N. Littlestone}, institution = {University of California}, note = {Technical Report UCSC-CRL-89-11}, title = {Mistake bounds and logarithmic linear-threshold learning algorithms}, year = {1989} }Valid options are:
-L Use the baLanced version (default false)
-I <int> The number of iterations to be performed. (default 1)
-A <double> Promotion coefficient alpha. (default 2.0)
-B <double> Demotion coefficient beta. (default 0.5)
-H <double> Prediction threshold. (default -1.0 == number of attributes)
-W <double> Starting weights. (default 2.0)
-S <int> Default random seed. (default 1)
- 版本:
- $Revision: 5523 $
- 作者:
- J. Lindgren (jtlindgr at cs.helsinki.fi)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyvoid
buildClassifier
(Instances insts) Builds the classifierdouble
classifyInstance
(Instance inst) Outputs the prediction for the given instance.Returns the tip text for this propertydouble
getAlpha()
Get the value of Alpha.boolean
Get the value of Balanced.double
getBeta()
Get the value of Beta.Returns default capabilities of the classifier.double
Get the value of defaultWeight.int
Get the value of numIterations.String[]
Gets the current settings of the classifier.Returns the revision string.int
getSeed()
Get the value of Seed.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.double
Get the value of Threshold.Returns a string describing classifierReturns an enumeration describing the available optionsstatic void
Main method.Returns the tip text for this propertyReturns the tip text for this propertyvoid
setAlpha
(double a) Set the value of Alpha.void
setBalanced
(boolean b) Set the value of Balanced.void
setBeta
(double b) Set the value of Beta.void
setDefaultWeight
(double w) Set the value of defaultWeight.void
setNumIterations
(int v) Set the value of numIterations.void
setOptions
(String[] options) Parses a given list of options.void
setSeed
(int v) Set the value of Seed.void
setThreshold
(double t) Set the value of Threshold.Returns the tip text for this propertytoString()
Returns textual description of the classifier.void
updateClassifier
(Instance instance) Updates the classifier with a new learning example从类继承的方法 weka.classifiers.Classifier
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
Winnow
public Winnow()
-
-
方法详细资料
-
globalInfo
Returns a string describing classifier- 返回:
- a description suitable for displaying in the explorer/experimenter gui
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
listOptions
Returns an enumeration describing the available options- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中Classifier
- 返回:
- an enumeration of all the available options
-
setOptions
Parses a given list of options. Valid options are:-L Use the baLanced version (default false)
-I <int> The number of iterations to be performed. (default 1)
-A <double> Promotion coefficient alpha. (default 2.0)
-B <double> Demotion coefficient beta. (default 0.5)
-H <double> Prediction threshold. (default -1.0 == number of attributes)
-W <double> Starting weights. (default 2.0)
-S <int> Default random seed. (default 1)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中Classifier
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the classifier.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Classifier
- 返回:
- an array of strings suitable for passing to setOptions
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Classifier
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
buildClassifier
Builds the classifier- 指定者:
buildClassifier
在类中Classifier
- 参数:
insts
- the data to train the classifier with- 抛出:
Exception
- if something goes wrong during building
-
updateClassifier
Updates the classifier with a new learning example- 指定者:
updateClassifier
在接口中UpdateableClassifier
- 参数:
instance
- the instance to update the classifier with- 抛出:
Exception
- if something goes wrong
-
classifyInstance
Outputs the prediction for the given instance.- 覆盖:
classifyInstance
在类中Classifier
- 参数:
inst
- the instance for which prediction is to be computed- 返回:
- the prediction
- 抛出:
Exception
- if something goes wrong
-
toString
Returns textual description of the classifier. -
balancedTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getBalanced
public boolean getBalanced()Get the value of Balanced.- 返回:
- Value of Balanced.
-
setBalanced
public void setBalanced(boolean b) Set the value of Balanced.- 参数:
b
- Value to assign to Balanced.
-
alphaTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getAlpha
public double getAlpha()Get the value of Alpha.- 返回:
- Value of Alpha.
-
setAlpha
public void setAlpha(double a) Set the value of Alpha.- 参数:
a
- Value to assign to Alpha.
-
betaTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getBeta
public double getBeta()Get the value of Beta.- 返回:
- Value of Beta.
-
setBeta
public void setBeta(double b) Set the value of Beta.- 参数:
b
- Value to assign to Beta.
-
thresholdTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getThreshold
public double getThreshold()Get the value of Threshold.- 返回:
- Value of Threshold.
-
setThreshold
public void setThreshold(double t) Set the value of Threshold.- 参数:
t
- Value to assign to Threshold.
-
defaultWeightTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getDefaultWeight
public double getDefaultWeight()Get the value of defaultWeight.- 返回:
- Value of defaultWeight.
-
setDefaultWeight
public void setDefaultWeight(double w) Set the value of defaultWeight.- 参数:
w
- Value to assign to defaultWeight.
-
numIterationsTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getNumIterations
public int getNumIterations()Get the value of numIterations.- 返回:
- Value of numIterations.
-
setNumIterations
public void setNumIterations(int v) Set the value of numIterations.- 参数:
v
- Value to assign to numIterations.
-
seedTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getSeed
public int getSeed()Get the value of Seed.- 返回:
- Value of Seed.
-
setSeed
public void setSeed(int v) Set the value of Seed.- 参数:
v
- Value to assign to Seed.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
main
Main method.- 参数:
argv
- the commandline options
-