|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.MultipleClassifiersCombiner | +--weka.classifiers.RandomizableMultipleClassifiersCombiner | +--weka.classifiers.meta.Stacking | +--weka.classifiers.meta.Grading
Implements Grading. For more information, see
Seewald A.K., Fuernkranz J. (2001): An Evaluation of Grading Classifiers, in Hoffmann F.\ et al.\ (eds.), Advances in Intelligent Data Analysis, 4th International Conference, IDA 2001, Proceedings, Springer, Berlin/Heidelberg/New York/Tokyo, pp.115-124, 2001 Valid options are:
-X num_folds
The number of folds for the cross-validation (default 10).
-S seed
Random number seed (default 1).
-B classifierstring
Classifierstring should contain the full class name of a base scheme
followed by options to the classifier.
(required, option should be used once for each classifier).
-M classifierstring
Classifierstring for the meta classifier. Same format as for base
classifiers. This classifier estimates confidence in prediction of
base classifiers. (required)
Constructor Summary | |
Grading()
|
Method Summary | |
double[] |
distributionForInstance(Instance instance)
Returns class probabilities for a given instance using the stacked 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.meta.Stacking |
buildClassifier, getMetaClassifier, getNumFolds, getOptions, listOptions, metaClassifierTipText, numFoldsTipText, setMetaClassifier, setNumFolds, setOptions |
Methods inherited from class weka.classifiers.RandomizableMultipleClassifiersCombiner |
getSeed, seedTipText, setSeed |
Methods inherited from class weka.classifiers.MultipleClassifiersCombiner |
classifiersTipText, getClassifier, getClassifiers, setClassifiers |
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 Grading()
Method Detail |
public java.lang.String globalInfo()
globalInfo
in class Stacking
public double[] distributionForInstance(Instance instance) throws java.lang.Exception
distributionForInstance
in class Stacking
instance
- the instance to be classified
java.lang.Exception
- if instance could not be classified
successfullypublic java.lang.String toString()
toString
in class Stacking
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 |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London