|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.SingleClassifierEnhancer | +--weka.classifiers.IteratedSingleClassifierEnhancer | +--weka.classifiers.RandomizableIteratedSingleClassifierEnhancer | +--weka.classifiers.meta.RandomCommittee
Class for creating a committee of random classifiers. The base classifier (that forms the committee members) needs to implement the Randomizable interface. Valid options are:
-W classname
Specify the full class name of a base classifier as the basis for
the random committee (required).
-I num
Set the number of committee members (default 10).
-S seed
Random number seed for the randomization process (default 1).
Options after -- are passed to the designated classifier.
Constructor Summary | |
RandomCommittee()
Constructor. |
Method Summary | |
void |
buildClassifier(Instances data)
Builds the committee of randomizable classifiers. |
double[] |
distributionForInstance(Instance instance)
Calculates the class membership probabilities for the given test instance. |
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()
Returns description of the committee. |
Methods inherited from class weka.classifiers.RandomizableIteratedSingleClassifierEnhancer |
getOptions, getSeed, listOptions, seedTipText, setOptions, setSeed |
Methods inherited from class weka.classifiers.IteratedSingleClassifierEnhancer |
getNumIterations, numIterationsTipText, setNumIterations |
Methods inherited from class weka.classifiers.SingleClassifierEnhancer |
classifierTipText, getClassifier, setClassifier |
Methods inherited from class weka.classifiers.Classifier |
classifyInstance, debugTipText, forName, getDebug, makeCopies, setDebug |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RandomCommittee()
Method Detail |
public java.lang.String globalInfo()
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier
in class IteratedSingleClassifierEnhancer
data
- the training data to be used for generating the
bagged 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 distribution can't be computed successfullypublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
argv
- the options
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London