|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.MultipleClassifiersCombiner
weka.classifiers.meta.Vote
Class for combining classifiers using unweighted average of probability estimates (classification) or numeric predictions (regression). Valid options from the command line are:
-B classifierstring
Classifierstring should contain the full class name of a scheme
included for selection followed by options to the classifier
(required, option should be used once for each classifier).
Field Summary |
Fields inherited from class weka.classifiers.MultipleClassifiersCombiner |
m_Classifiers |
Fields inherited from class weka.classifiers.Classifier |
m_Debug |
Constructor Summary | |
Vote()
|
Method Summary | |
void |
buildClassifier(Instances data)
Buildclassifier selects a classifier from the set of classifiers by minimising error on the training data. |
double[] |
distributionForInstance(Instance instance)
Classifies a given instance using the selected classifier. |
java.lang.String |
globalInfo()
Returns a string describing classifier |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
java.lang.String |
toString()
Output a representation of this classifier |
Methods inherited from class weka.classifiers.MultipleClassifiersCombiner |
classifiersTipText, getClassifier, getClassifiers, getClassifierSpec, getOptions, listOptions, setClassifiers, setOptions |
Methods inherited from class weka.classifiers.Classifier |
classifyInstance, debugTipText, forName, getDebug, makeCopies, setDebug |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Vote()
Method Detail |
public java.lang.String globalInfo()
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier
in class Classifier
data
- the training data to be used for generating the
boosted classifier.
java.lang.Exception
- if the classifier could not be built successfullypublic double[] distributionForInstance(Instance instance) throws java.lang.Exception
distributionForInstance
in class Classifier
instance
- the instance to be classified
java.lang.Exception
- if instance could not be classified
successfullypublic java.lang.String toString()
public static void main(java.lang.String[] argv)
argv
- should contain the following arguments:
-t training file [-T test file] [-c class index]
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |