All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.meta.Grading
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)
public Grading()
public java.util.Enumeration listOptions()
public void setOptions(java.lang.String options[]) throws java.lang.Exception
-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. (required)
options - the list of options as an array of strings
public java.lang.String[] getOptions()
public void setSeed(int seed)
seed - the random number seed
public int getSeed()
public int getNumFolds()
public void setNumFolds(int numFolds) throws java.lang.Exception
numFolds - the number of folds for the cross-validation
public void setBaseClassifiers(Classifier classifiers[]) throws java.lang.Exception
classifiers - an array of classifiers with all options set.
public Classifier[] getBaseClassifiers()
public Classifier getBaseClassifier(int index)
index - the index of the classifier to retrieve
public void setMetaClassifier(Classifier classifier) throws java.lang.Exception
classifier - the classifier with all options set.
public Classifier[] getMetaClassifiersX()
public Classifier getMetaClassifier()
public void buildClassifier(Instances data) throws java.lang.Exception
data - the training data to be used for generating the
boosted classifier.
public double classifyInstance(Instance instance) throws java.lang.Exception
instance - the instance to be classified
public 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]
All Packages Class Hierarchy This Package Previous Next Index WEKA's home