|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.optimise.AbstractFitnessFunction
adams.optimise.genetic.fitnessfunctions.AbstractWEKAFitnessFunction
public abstract class AbstractWEKAFitnessFunction
Perform attribute selection using WEKA classification.
| Nested Class Summary | |
|---|---|
static class |
AbstractWEKAFitnessFunction.Measure
The measure to use for evaluating. |
| Field Summary | |
|---|---|
protected weka.classifiers.Classifier |
m_Classifier
the classifier to use if no serialized model is given. |
protected String |
m_ClassIndex
the class index. |
protected int |
m_CrossValidationSeed
the cross-validation seed. |
protected PlaceholderFile |
m_Dataset
the filename of the data to use for cross-validation. |
protected int |
m_Folds
the number of folds for cross-validation. |
protected boolean |
m_init
initialised? |
protected weka.core.Instances |
m_Instances
the data to use for cross-validation. |
protected AbstractWEKAFitnessFunction.Measure |
m_Measure
the measure to use for evaluating the fitness. |
protected PlaceholderDirectory |
m_OutputDirectory
the directory to store the generated ARFF files in. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractWEKAFitnessFunction()
|
|
| Method Summary | |
|---|---|
String |
classifierTipText()
Returns the tip text for this property. |
String |
classIndexTipText()
Returns the tip text for this property. |
String |
crossValidationSeedTipText()
Returns the tip text for this property. |
String |
datasetTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
String |
foldsTipText()
Returns the tip text for this property. |
weka.classifiers.Classifier |
getClassifier()
Returns the currently set classifier. |
String |
getClassIndex()
Returns the current class index. |
int |
getCrossValidationSeed()
Returns the current seed value for cross-validation. |
PlaceholderFile |
getDataset()
Returns the currently set filename of the dataset for cross-validation. |
int |
getFolds()
Returns the number of folds to use in cross-validation. |
weka.core.Instances |
getInstances()
Returns the currently set dataset for cross-validation. |
AbstractWEKAFitnessFunction.Measure |
getMeasure()
Returns the current measure for evaluating the fitness. |
PlaceholderDirectory |
getOutputDirectory()
Returns the currently set directory for the generated ARFF files. |
String |
globalInfo()
|
protected void |
init()
|
String |
measureTipText()
Returns the tip text for this property. |
String |
outputDirectoryTipText()
Returns the tip text for this property. |
void |
setClassifier(weka.classifiers.Classifier value)
Sets the classifier to use (if no serialized model is used). |
void |
setClassIndex(String value)
Sets the class index. |
void |
setCrossValidationSeed(int value)
Sets the seed value to use for cross-validation. |
void |
setDataset(PlaceholderFile value)
Sets the filename of the dataset to use for cross-validation. |
void |
setFolds(int value)
Sets the number of folds to use in cross-validation. |
void |
setInstances(weka.core.Instances value)
Sets the data to use for cross-validation. |
void |
setMeasure(AbstractWEKAFitnessFunction.Measure value)
Sets the measure used for evaluating the fitness. |
void |
setOutputDirectory(PlaceholderDirectory value)
Sets the directory for the generated ARFF files. |
| Methods inherited from class adams.optimise.AbstractFitnessFunction |
|---|
newBest |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.optimise.FitnessFunction |
|---|
evaluate |
| Field Detail |
|---|
protected weka.core.Instances m_Instances
protected PlaceholderFile m_Dataset
protected weka.classifiers.Classifier m_Classifier
protected PlaceholderDirectory m_OutputDirectory
protected int m_Folds
protected int m_CrossValidationSeed
protected String m_ClassIndex
protected AbstractWEKAFitnessFunction.Measure m_Measure
protected boolean m_init
| Constructor Detail |
|---|
public AbstractWEKAFitnessFunction()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setFolds(int value)
value - the number of foldspublic int getFolds()
public String foldsTipText()
public void setCrossValidationSeed(int value)
value - the seed to usepublic int getCrossValidationSeed()
public String crossValidationSeedTipText()
public void setInstances(weka.core.Instances value)
value - the datasetpublic weka.core.Instances getInstances()
public void setDataset(PlaceholderFile value)
value - the filenamepublic PlaceholderFile getDataset()
public String datasetTipText()
public void setClassifier(weka.classifiers.Classifier value)
value - the classifierpublic weka.classifiers.Classifier getClassifier()
public String classifierTipText()
public void setOutputDirectory(PlaceholderDirectory value)
value - the directorypublic PlaceholderDirectory getOutputDirectory()
public String outputDirectoryTipText()
public void setClassIndex(String value)
value - the class indexpublic String getClassIndex()
public String classIndexTipText()
public void setMeasure(AbstractWEKAFitnessFunction.Measure value)
value - the fitness measurepublic AbstractWEKAFitnessFunction.Measure getMeasure()
public String measureTipText()
public String globalInfo()
globalInfo in class AbstractOptionHandlerprotected void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||