All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.DistributionClassifier
|
+----weka.classifiers.meta.StackingC
Seewald A.K.: How to Make Stacking Better and Faster While Also Taking Care of an Unknown Weakness, in Sammut C., Hoffmann A. (eds.), Proceedings of the Nineteenth International Conference on Machine Learning (ICML 2002), Morgan Kaufmann Publishers, pp.554-561, 2002.
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. Has to be a function classifier, defaults to Linear
Regression as in the original paper.
public StackingC()
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. Must be a function classifier. Default: Linear Regression
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[])
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)
classifier - the classifier with all options set.
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[] distributionForInstance(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