类 Vote
- 所有已实现的接口:
Serializable
,Cloneable
,CapabilitiesHandler
,OptionHandler
,Randomizable
,RevisionHandler
,TechnicalInformationHandler
public class Vote
extends RandomizableMultipleClassifiersCombiner
implements TechnicalInformationHandler
Class for combining classifiers. Different
combinations of probability estimates for classification are available.
For more information see:
Ludmila I. Kuncheva (2004). Combining Pattern Classifiers: Methods and Algorithms. John Wiley and Sons, Inc..
J. Kittler, M. Hatef, Robert P.W. Duin, J. Matas (1998). On combining classifiers. IEEE Transactions on Pattern Analysis and Machine Intelligence. 20(3):226-239. Valid options are:
For more information see:
Ludmila I. Kuncheva (2004). Combining Pattern Classifiers: Methods and Algorithms. John Wiley and Sons, Inc..
J. Kittler, M. Hatef, Robert P.W. Duin, J. Matas (1998). On combining classifiers. IEEE Transactions on Pattern Analysis and Machine Intelligence. 20(3):226-239. Valid options are:
-S <num> Random number seed. (default 1)
-B <classifier specification> Full class name of classifier to include, followed by scheme options. May be specified multiple times. (default: "weka.classifiers.rules.ZeroR")
-D If set, classifier is run in debug mode and may output additional info to the console
-R <AVG|PROD|MAJ|MIN|MAX|MED> The combination rule to use (default: AVG)BibTeX:
@book{Kuncheva2004, author = {Ludmila I. Kuncheva}, publisher = {John Wiley and Sons, Inc.}, title = {Combining Pattern Classifiers: Methods and Algorithms}, year = {2004} } @article{Kittler1998, author = {J. Kittler and M. Hatef and Robert P.W. Duin and J. Matas}, journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence}, number = {3}, pages = {226-239}, title = {On combining classifiers}, volume = {20}, year = {1998} }
- 版本:
- $Revision: 12426 $
- 作者:
- Alexander K. Seewald (alex@seewald.at), Eibe Frank (eibe@cs.waikato.ac.nz), Roberto Perdisci (roberto.perdisci@gmail.com)
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
combination rule: Average of Probabilitiesstatic final int
combination rule: Majority Voting (only nominal classes)static final int
combination rule: Maximum Probabilitystatic final int
combination rule: Median Probability (only numeric class)static final int
combination rule: Minimum Probabilitystatic final int
combination rule: Product of Probabilities (only nominal classes)static final Tag[]
combination rules -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances data) Buildclassifier selects a classifier from the set of classifiers by minimising error on the training data.double
classifyInstance
(Instance instance) Classifies the given test instance.Returns the tip text for this propertydouble[]
distributionForInstance
(Instance instance) Classifies a given instance using the selected combination rule.Returns default capabilities of the classifier.Gets the combination rule usedString[]
Gets the current settings of Vote.Returns the revision string.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.Returns a string describing classifierReturns an enumeration describing the available options.static void
Main method for testing this class.void
setCombinationRule
(SelectedTag newRule) Sets the combination rule to use.void
setOptions
(String[] options) Parses a given list of options.toString()
Output a representation of this classifier从类继承的方法 weka.classifiers.RandomizableMultipleClassifiersCombiner
getSeed, seedTipText, setSeed
从类继承的方法 weka.classifiers.MultipleClassifiersCombiner
classifiersTipText, getClassifier, getClassifiers, setClassifiers
从类继承的方法 weka.classifiers.Classifier
debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug
-
字段详细资料
-
AVERAGE_RULE
public static final int AVERAGE_RULEcombination rule: Average of Probabilities- 另请参阅:
-
PRODUCT_RULE
public static final int PRODUCT_RULEcombination rule: Product of Probabilities (only nominal classes)- 另请参阅:
-
MAJORITY_VOTING_RULE
public static final int MAJORITY_VOTING_RULEcombination rule: Majority Voting (only nominal classes)- 另请参阅:
-
MIN_RULE
public static final int MIN_RULEcombination rule: Minimum Probability- 另请参阅:
-
MAX_RULE
public static final int MAX_RULEcombination rule: Maximum Probability- 另请参阅:
-
MEDIAN_RULE
public static final int MEDIAN_RULEcombination rule: Median Probability (only numeric class)- 另请参阅:
-
TAGS_RULES
combination rules
-
-
构造器详细资料
-
Vote
public Vote()
-
-
方法详细资料
-
globalInfo
Returns a string describing classifier- 返回:
- a description suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中RandomizableMultipleClassifiersCombiner
- 返回:
- an enumeration of all the available options.
-
getOptions
Gets the current settings of Vote.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中RandomizableMultipleClassifiersCombiner
- 返回:
- an array of strings suitable for passing to setOptions()
-
setOptions
Parses a given list of options. Valid options are:-S <num> Random number seed. (default 1)
-B <classifier specification> Full class name of classifier to include, followed by scheme options. May be specified multiple times. (default: "weka.classifiers.rules.ZeroR")
-D If set, classifier is run in debug mode and may output additional info to the console
-R <AVG|PROD|MAJ|MIN|MAX|MED> The combination rule to use (default: AVG)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中RandomizableMultipleClassifiersCombiner
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
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
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中MultipleClassifiersCombiner
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
buildClassifier
Buildclassifier selects a classifier from the set of classifiers by minimising error on the training data.- 指定者:
buildClassifier
在类中Classifier
- 参数:
data
- the training data to be used for generating the boosted classifier.- 抛出:
Exception
- if the classifier could not be built successfully
-
classifyInstance
Classifies the given test instance.- 覆盖:
classifyInstance
在类中Classifier
- 参数:
instance
- the instance to be classified- 返回:
- the predicted most likely class for the instance or Instance.missingValue() if no prediction is made
- 抛出:
Exception
- if an error occurred during the prediction
-
distributionForInstance
Classifies a given instance using the selected combination rule.- 覆盖:
distributionForInstance
在类中Classifier
- 参数:
instance
- the instance to be classified- 返回:
- the distribution
- 抛出:
Exception
- if instance could not be classified successfully
-
combinationRuleTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCombinationRule
Gets the combination rule used- 返回:
- the combination rule used
-
setCombinationRule
Sets the combination rule to use. Values other than- 参数:
newRule
- the combination rule method to use
-
toString
Output a representation of this classifier -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- should contain the following arguments: -t training file [-T test file] [-c class index]
-