Threshold by which to execute another cross validation (standard deviation
---expressed as a percentage of the mean).
- Version:
- $Revision: 1.13 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
- Serialized Form
WrapperSubsetEval
public WrapperSubsetEval()
- Constructor. Calls restOptions to set default options
globalInfo
public String globalInfo()
- Returns a string describing this attribute evaluator
- Returns:
- a description of the evaluator suitable for
displaying in the explorer/experimenter gui
listOptions
public Enumeration listOptions()
- Returns an enumeration describing the available options
- Specified by:
listOptions
in interface OptionHandler
- Returns:
- an enumeration of all the available options
setOptions
public void setOptions(String[] options)
throws Exception
- Parses a given list of options.
Valid options are:
-B
Class name of base learner to use for accuracy estimation.
Place any classifier options last on the command line following a
"--". Eg -B weka.classifiers.NaiveBayes ... -- -K
-F
Number of cross validation folds to use for estimating accuracy.
-T
Threshold by which to execute another cross validation (standard deviation
---expressed as a percentage of the mean).
- Specified by:
setOptions
in interface OptionHandler
- Parameters:
options
- the list of options as an array of strings
- Throws:
Exception
- if an option is not supported
thresholdTipText
public String thresholdTipText()
- Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setThreshold
public void setThreshold(double t)
- Set the value of the threshold for repeating cross validation
- Parameters:
t
- the value of the threshold
getThreshold
public double getThreshold()
- Get the value of the threshold
- Returns:
- the threshold as a double
foldsTipText
public String foldsTipText()
- Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setFolds
public void setFolds(int f)
- Set the number of folds to use for accuracy estimation
- Parameters:
f
- the number of folds
getFolds
public int getFolds()
- Get the number of folds used for accuracy estimation
- Returns:
- the number of folds
seedTipText
public String seedTipText()
- Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setSeed
public void setSeed(int s)
- Set the seed to use for cross validation
- Parameters:
s
- the seed
getSeed
public int getSeed()
- Get the random number seed used for cross validation
- Returns:
- the seed
classifierTipText
public String classifierTipText()
- Returns the tip text for this property
- Returns:
- tip text for this property suitable for
displaying in the explorer/experimenter gui
setClassifier
public void setClassifier(Classifier newClassifier)
- Set the classifier to use for accuracy estimation
- Parameters:
newClassifier
- the Classifier to use.
getClassifier
public Classifier getClassifier()
- Get the classifier used as the base learner.
- Returns:
- the classifier used as the classifier
getOptions
public String[] getOptions()
- Gets the current settings of WrapperSubsetEval.
- Specified by:
getOptions
in interface OptionHandler
- Returns:
- an array of strings suitable for passing to setOptions()
resetOptions
protected void resetOptions()
buildEvaluator
public void buildEvaluator(Instances data)
throws Exception
- Generates a attribute evaluator. Has to initialize all fields of the
evaluator that are not being set via options.
- Specified by:
buildEvaluator
in class ASEvaluation
- Parameters:
data
- set of instances serving as training data
- Throws:
Exception
- if the evaluator has not been
generated successfully
evaluateSubset
public double evaluateSubset(BitSet subset)
throws Exception
- Evaluates a subset of attributes
- Specified by:
evaluateSubset
in class SubsetEvaluator
- Parameters:
subset
- a bitset representing the attribute subset to be
evaluated
- Returns:
- the "merit" of the subset
- Throws:
Exception
- if the subset could not be evaluated
toString
public String toString()
- Returns a string describing the wrapper
- Overrides:
toString
in class Object
- Returns:
- the description as a string
main
public static void main(String[] args)
- Main method for testing this class.
- Parameters:
args
- the options