public class Decorate extends RandomizableIteratedSingleClassifierEnhancer implements TechnicalInformationHandler
@inproceedings{Melville2003,
author = {P. Melville and R. J. Mooney},
booktitle = {Eighteenth International Joint Conference on Artificial Intelligence},
pages = {505-510},
title = {Constructing Diverse Classifier Ensembles Using Artificial Training Examples},
year = {2003}
}
@article{Melville2004,
author = {P. Melville and R. J. Mooney},
journal = {Information Fusion: Special Issue on Diversity in Multiclassifier Systems},
note = {submitted},
title = {Creating Diversity in Ensembles Using Artificial Data},
year = {2004}
}
Valid options are:
-E Desired size of ensemble. (default 15)
-R Factor that determines number of artificial examples to generate. Specified proportional to training set size. (default 1.0)
-S <num> Random number seed. (default 1)
-I <num> Number of iterations. (default 50)
-D If set, classifier is run in debug mode and may output additional info to the console
-W Full name of base classifier. (default: weka.classifiers.trees.J48)
Options specific to classifier weka.classifiers.trees.J48:
-U Use unpruned tree.
-C <pruning confidence> Set confidence threshold for pruning. (default 0.25)
-M <minimum number of instances> Set minimum number of instances per leaf. (default 2)
-R Use reduced error pruning.
-N <number of folds> Set number of folds for reduced error pruning. One fold is used as pruning set. (default 3)
-B Use binary splits only.
-S Don't perform subtree raising.
-L Do not clean up after the tree has been built.
-A Laplace smoothing for predicted probabilities.
-Q <seed> Seed for random data shuffling (default 1).Options after -- are passed to the designated classifier.
| Constructor and Description |
|---|
Decorate()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
artificialSizeTipText()
Returns the tip text for this property
|
void |
buildClassifier(Instances data)
Build Decorate classifier
|
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.
|
Capabilities |
getCapabilities()
Returns default capabilities of the classifier.
|
int |
getDesiredSize()
Gets the desired size of the committee.
|
java.lang.String[] |
getOptions()
Gets the current settings of the 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
|
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
|
void |
setArtificialSize(double newArtSize)
Sets factor that determines number of artificial examples to generate.
|
void |
setDesiredSize(int newDesiredSize)
Sets the desired size of the committee.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
java.lang.String |
toString()
Returns description of the Decorate classifier.
|
getSeed, seedTipText, setSeedgetNumIterations, setNumIterationsclassifierTipText, getClassifier, setClassifierclassifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebugpublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class RandomizableIteratedSingleClassifierEnhancerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-E Desired size of ensemble. (default 15)
-R Factor that determines number of artificial examples to generate. Specified proportional to training set size. (default 1.0)
-S <num> Random number seed. (default 1)
-I <num> Number of iterations. (default 50)
-D If set, classifier is run in debug mode and may output additional info to the console
-W Full name of base classifier. (default: weka.classifiers.trees.J48)
Options specific to classifier weka.classifiers.trees.J48:
-U Use unpruned tree.
-C <pruning confidence> Set confidence threshold for pruning. (default 0.25)
-M <minimum number of instances> Set minimum number of instances per leaf. (default 2)
-R Use reduced error pruning.
-N <number of folds> Set number of folds for reduced error pruning. One fold is used as pruning set. (default 3)
-B Use binary splits only.
-S Don't perform subtree raising.
-L Do not clean up after the tree has been built.
-A Laplace smoothing for predicted probabilities.
-Q <seed> Seed for random data shuffling (default 1).Options after -- are passed to the designated classifier.
setOptions in interface OptionHandlersetOptions in class RandomizableIteratedSingleClassifierEnhanceroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class RandomizableIteratedSingleClassifierEnhancerpublic java.lang.String desiredSizeTipText()
public java.lang.String numIterationsTipText()
numIterationsTipText in class IteratedSingleClassifierEnhancerpublic java.lang.String artificialSizeTipText()
public java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic double getArtificialSize()
public void setArtificialSize(double newArtSize)
newArtSize - factor that determines number of artificial examples to generatepublic int getDesiredSize()
public void setDesiredSize(int newDesiredSize)
newDesiredSize - the desired size of the committeepublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class SingleClassifierEnhancerCapabilitiespublic void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier in class IteratedSingleClassifierEnhancerdata - the training data to be used for generating the classifierjava.lang.Exception - if the classifier could not be built successfullypublic double[] distributionForInstance(Instance instance) throws java.lang.Exception
distributionForInstance in class Classifierinstance - the instance to be classifiedjava.lang.Exception - if distribution can't be computed successfullypublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Classifierpublic static void main(java.lang.String[] argv)
argv - the options