|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.MultipleClassifiersCombiner
weka.classifiers.RandomizableMultipleClassifiersCombiner
weka.classifiers.meta.Stacking
weka.classifiers.meta.StackingC
Implements StackingC (more efficient version of stacking). For more information, see
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 numeric prediction scheme, defaults to Linear
Regression as in the original paper.
Field Summary | |
protected Remove |
m_attrFilter
Filters to transform metaData |
protected MakeIndicator |
m_makeIndicatorFilter
|
protected Classifier[] |
m_MetaClassifiers
The meta classifiers (one for each class, like in ClassificationViaRegression) |
Fields inherited from class weka.classifiers.meta.Stacking |
m_BaseFormat, m_MetaClassifier, m_MetaFormat, m_NumFolds |
Fields inherited from class weka.classifiers.RandomizableMultipleClassifiersCombiner |
m_Seed |
Fields inherited from class weka.classifiers.MultipleClassifiersCombiner |
m_Classifiers |
Fields inherited from class weka.classifiers.Classifier |
m_Debug |
Constructor Summary | |
StackingC()
The constructor. |
Method Summary | |
double[] |
distributionForInstance(Instance instance)
Classifies a given instance using the stacked classifier. |
protected void |
generateMetaLevel(Instances newData,
java.util.Random random)
Method that builds meta level. |
java.lang.String |
globalInfo()
Returns a string describing classifier |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
protected java.lang.String |
metaOption()
String describing option for setting meta classifier |
protected void |
processMetaOptions(java.lang.String[] options)
Process options setting meta classifier. |
java.lang.String |
toString()
Output a representation of this classifier |
Methods inherited from class weka.classifiers.meta.Stacking |
buildClassifier, getMetaClassifier, getNumFolds, getOptions, listOptions, metaClassifierTipText, metaFormat, metaInstance, numFoldsTipText, setMetaClassifier, setNumFolds, setOptions |
Methods inherited from class weka.classifiers.RandomizableMultipleClassifiersCombiner |
getSeed, seedTipText, setSeed |
Methods inherited from class weka.classifiers.MultipleClassifiersCombiner |
classifiersTipText, getClassifier, getClassifiers, getClassifierSpec, setClassifiers |
Methods inherited from class weka.classifiers.Classifier |
classifyInstance, debugTipText, forName, getDebug, makeCopies, setDebug |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface weka.core.OptionHandler |
getOptions, listOptions, setOptions |
Field Detail |
protected Classifier[] m_MetaClassifiers
protected Remove m_attrFilter
protected MakeIndicator m_makeIndicatorFilter
Constructor Detail |
public StackingC()
Method Detail |
public java.lang.String globalInfo()
globalInfo
in class Stacking
protected java.lang.String metaOption()
metaOption
in class Stacking
protected void processMetaOptions(java.lang.String[] options) throws java.lang.Exception
processMetaOptions
in class Stacking
java.lang.Exception
protected void generateMetaLevel(Instances newData, java.util.Random random) throws java.lang.Exception
generateMetaLevel
in class Stacking
java.lang.Exception
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 |