Class AttributeSelection
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.opt.optimise.AbstractFitnessFunction
-
- adams.opt.optimise.genetic.fitnessfunctions.AbstractWEKAFitnessFunction
-
- adams.opt.optimise.genetic.fitnessfunctions.AttributeSelection
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.opt.optimise.FitnessFunction,Serializable
public class AttributeSelection extends AbstractWEKAFitnessFunction
Perform attribute selection using WEKA classification.- Version:
- $Revision$
- Author:
- dale
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.opt.optimise.genetic.fitnessfunctions.AbstractWEKAFitnessFunction
AbstractWEKAFitnessFunction.Measure
-
-
Field Summary
-
Fields inherited from class adams.opt.optimise.genetic.fitnessfunctions.AbstractWEKAFitnessFunction
m_Classifier, m_ClassIndex, m_CrossValidationSeed, m_Dataset, m_Folds, m_init, m_Instances, m_Measure, m_OutputDirectory
-
-
Constructor Summary
Constructors Constructor Description AttributeSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleevaluate(adams.opt.optimise.OptData opd)adams.opt.optimise.OptDatagetDataDef()StringgetRemoveAsString(int[] m_weights)Generates a range string of attributes to keep (= one has to use the inverse matching sense with the Remove filter).protected int[]getWeights(adams.opt.optimise.OptData opd)StringglobalInfo()voidnewBest(double val, adams.opt.optimise.OptData opd)Callback for best measure so far-
Methods inherited from class adams.opt.optimise.genetic.fitnessfunctions.AbstractWEKAFitnessFunction
classifierTipText, classIndexTipText, crossValidationSeedTipText, datasetTipText, defineOptions, foldsTipText, getClassifier, getClassIndex, getCrossValidationSeed, getDataset, getFolds, getInstances, getMeasure, getOutputDirectory, init, measureTipText, outputDirectoryTipText, setClassifier, setClassIndex, setCrossValidationSeed, setDataset, setFolds, setInstances, setMeasure, setOutputDirectory
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Overrides:
globalInfoin classAbstractWEKAFitnessFunction
-
getDataDef
public adams.opt.optimise.OptData getDataDef()
-
getWeights
protected int[] getWeights(adams.opt.optimise.OptData opd)
-
evaluate
public double evaluate(adams.opt.optimise.OptData opd)
-
getRemoveAsString
public String getRemoveAsString(int[] m_weights)
Generates a range string of attributes to keep (= one has to use the inverse matching sense with the Remove filter).- Returns:
- the range of attributes to keep
-
newBest
public void newBest(double val, adams.opt.optimise.OptData opd)Callback for best measure so far- Specified by:
newBestin interfaceadams.opt.optimise.FitnessFunction- Overrides:
newBestin classadams.opt.optimise.AbstractFitnessFunction
-
-