public class StackingC extends Stacking implements OptionHandler, TechnicalInformationHandler
@inproceedings{Seewald2002,
author = {A.K. Seewald},
booktitle = {Nineteenth International Conference on Machine Learning},
editor = {C. Sammut and A. Hoffmann},
pages = {554-561},
publisher = {Morgan Kaufmann Publishers},
title = {How to Make Stacking Better and Faster While Also Taking Care of an Unknown Weakness},
year = {2002}
}
Valid options are:
-M <scheme specification> Full name of meta classifier, followed by options. Must be a numeric prediction scheme. Default: Linear Regression.
-X <number of folds> Sets the number of cross-validation folds.
-S <num> Random number seed. (default 1)
-B <classifier specification> Full class name of classifier to include, followed by scheme options. May be specified multiple times. (default: "weka.classifiers.rules.ZeroR")
-D If set, classifier is run in debug mode and may output additional info to the console
| Constructor and Description |
|---|
StackingC()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
distributionForInstance(Instance instance)
Classifies a given instance using the stacked classifier.
|
java.lang.String |
getRevision()
Returns the revision string.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
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
|
buildClassifier, getCapabilities, getMetaClassifier, getNumFolds, getOptions, listOptions, metaClassifierTipText, numFoldsTipText, setMetaClassifier, setNumFolds, setOptionsgetSeed, seedTipText, setSeedclassifiersTipText, getClassifier, getClassifiers, setClassifiersclassifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebugequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOptions, listOptions, setOptionspublic java.lang.String globalInfo()
globalInfo in class Stackingpublic TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlergetTechnicalInformation in class Stackingpublic double[] distributionForInstance(Instance instance) throws java.lang.Exception
distributionForInstance in class Stackinginstance - the instance to be classifiedjava.lang.Exception - if instance could not be classified
successfullypublic java.lang.String toString()
public java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Stackingpublic static void main(java.lang.String[] argv)
argv - should contain the following arguments:
-t training file [-T test file] [-c class index]