|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.Classifier | +--weka.classifiers.meta.Decorate
DECORATE is a meta-learner for building diverse ensembles of classifiers by using specially constructed artificial training examples. Comprehensive experiments have demonstrated that this technique is consistently more accurate than the base classifier, Bagging and Random Forests. Decorate also obtains higher accuracy than Boosting on small training sets, and achieves comparable performance on larger training sets. For more details see:
Prem Melville and Raymond J. Mooney. Constructing diverse classifier ensembles using artificial training examples. Proceedings of the Seventeeth International Joint Conference on Artificial Intelligence 2003.
Prem Melville and Raymond J. Mooney. Creating diversity in ensembles using artificial data.
Submitted.
Valid options are:
-D
Turn on debugging output.
-W classname
Specify the full class name of a weak classifier as the basis for
Decorate (default weka.classifiers.trees.J48()).
-I num
Specify the desired size of the committee (default 15).
-M iterations
Set the maximum number of Decorate iterations (default 50).
-S seed
Seed for random number generator. (default 0).
-R factor
Factor that determines number of artificial examples to generate.
Options after -- are passed to the designated classifier.
Constructor Summary | |
Decorate()
|
Method Summary | |
java.lang.String |
artificialSizeTipText()
Returns the tip text for this property |
void |
buildClassifier(Instances data)
Build Decorate classifier |
java.lang.String |
classifierTipText()
Returns the tip text for this property |
java.lang.String |
desiredSizeTipText()
Returns the tip text for this property |
double[] |
distributionForInstance(Instance instance)
Calculates the class membership probabilities for the given test instance. |
double |
getArtificialSize()
Factor that determines number of artificial examples to generate. |
Classifier |
getClassifier()
Get the classifier used as the base classifier |
boolean |
getDebug()
Get whether debugging is turned on |
int |
getDesiredSize()
Gets the desired size of the committee. |
int |
getNumIterations()
Gets the max number of Decorate iterations to run. |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier. |
int |
getSeed()
Gets the seed for the random number generator. |
java.lang.String |
globalInfo()
Returns a string describing classifier |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
java.lang.String |
numIterationsTipText()
Returns the tip text for this property |
java.lang.String |
seedTipText()
Returns the tip text for this property |
void |
setArtificialSize(double newArtSize)
Sets factor that determines number of artificial examples to generate. |
void |
setClassifier(Classifier newClassifier)
Set the base classifier for Decorate. |
void |
setDebug(boolean debug)
Set debugging mode |
void |
setDesiredSize(int newDesiredSize)
Sets the desired size of the committee. |
void |
setNumIterations(int numIterations)
Sets the max number of Decorate iterations to run. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setSeed(int seed)
Set the seed for random number generator. |
java.lang.String |
toString()
Returns description of the Decorate classifier. |
Methods inherited from class weka.classifiers.Classifier |
classifyInstance, debugTipText, forName, makeCopies |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Decorate()
Method Detail |
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class Classifier
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D
Turn on debugging output.
-W classname
Specify the full class name of a weak classifier as the basis for
Decorate (required).
-I num
Specify the desired size of the committee (default 15).
-M iterations
Set the maximum number of Decorate iterations (default 50).
-S seed
Seed for random number generator. (default 0).
-R factor
Factor that determines number of artificial examples to generate.
Options after -- are passed to the designated classifier.
setOptions
in interface OptionHandler
setOptions
in class Classifier
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Classifier
public java.lang.String desiredSizeTipText()
public java.lang.String numIterationsTipText()
public java.lang.String artificialSizeTipText()
public java.lang.String seedTipText()
public java.lang.String classifierTipText()
public java.lang.String globalInfo()
public void setDebug(boolean debug)
setDebug
in class Classifier
debug
- true if debug output should be printedpublic boolean getDebug()
getDebug
in class Classifier
public void setClassifier(Classifier newClassifier)
newClassifier
- the Classifier to use.public Classifier getClassifier()
public double getArtificialSize()
public void setArtificialSize(double newArtSize)
public int getDesiredSize()
public void setDesiredSize(int newDesiredSize)
newDesiredSize
- the desired size of the committeepublic void setNumIterations(int numIterations)
numIterations
- max number of Decorate iterations to runpublic int getNumIterations()
public void setSeed(int seed)
seed
- the random number seedpublic int getSeed()
public void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier
in class Classifier
data
- the training data to be used for generating the classifier
java.lang.Exception
- if the classifier could not be built successfullypublic double[] distributionForInstance(Instance instance) throws java.lang.Exception
distributionForInstance
in class Classifier
instance
- the instance to be classified
java.lang.Exception
- if distribution can't be computed successfullypublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
argv
- the options
|
|||||||||
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