public class CheckAttributeSelection extends CheckScheme
java weka.attributeSelection.CheckAttributeSelection -W ASscheme_name
-- ASscheme_options
CheckAttributeSelection reports on the following:
weka.attributeSelection.AbstractAttributeSelectionTest uses
this class to test all the schemes. Any changes here, have to be checked in
that abstract test class, too.
Valid options are:
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-N <num> The number of instances in the datasets (default 20).
-nominal <num> The number of nominal attributes (default 2).
-nominal-values <num> The number of values for nominal attributes (default 1).
-numeric <num> The number of numeric attributes (default 1).
-string <num> The number of string attributes (default 1).
-date <num> The number of date attributes (default 1).
-relational <num> The number of relational attributes (default 1).
-num-instances-relational <num> The number of instances in relational/bag attributes (default 10).
-words <comma-separated-list> The words to use in string attributes.
-word-separators <chars> The word separators to use in string attributes.
-eval name [options] Full name and options of the evaluator analyzed. eg: weka.attributeSelection.CfsSubsetEval
-search name [options] Full name and options of the search method analyzed. eg: weka.attributeSelection.Ranker
-test <eval|search> The scheme to test, either the evaluator or the search method. (Default: eval)
Options specific to evaluator weka.attributeSelection.CfsSubsetEval:
-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
Options specific to search method weka.attributeSelection.Ranker:
-P <start set> Specify a starting set of attributes. Eg. 1,3,5-7. Any starting attributes specified are ignored during the ranking.
-T <threshold> Specify a theshold by which attributes may be discarded from the ranking.
-N <num to select> Specify number of attributes to select
TestInstancesCheckScheme.PostProcessor| Constructor and Description |
|---|
CheckAttributeSelection() |
| Modifier and Type | Method and Description |
|---|---|
void |
doTests()
Begin the tests, reporting results to System.out
|
ASEvaluation |
getEvaluator()
Get the current evaluator
|
java.lang.String[] |
getOptions()
Gets the current settings of the CheckAttributeSelection.
|
java.lang.String |
getRevision()
Returns the revision string.
|
ASSearch |
getSearch()
Get the current search method
|
boolean |
getTestEvaluator()
Gets whether the evaluator is being tested or the search method.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] args)
Test method for this class
|
void |
setEvaluator(ASEvaluation value)
Set the evaluator to test.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSearch(ASSearch value)
Set the search method to test.
|
void |
setTestEvaluator(boolean value)
Sets whether the evaluator or the search method is being tested.
|
attributeTypeToString, getNumDate, getNumInstances, getNumInstancesRelational, getNumNominal, getNumNumeric, getNumRelational, getNumString, getPostProcessor, getWords, getWordSeparators, hasClasspathProblems, setNumDate, setNumInstances, setNumInstancesRelational, setNumNominal, setNumNumeric, setNumRelational, setNumString, setPostProcessor, setWords, setWordSeparatorsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopypublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class CheckSchemepublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D Turn on debugging output.
-S Silent mode - prints nothing to stdout.
-N <num> The number of instances in the datasets (default 20).
-nominal <num> The number of nominal attributes (default 2).
-nominal-values <num> The number of values for nominal attributes (default 1).
-numeric <num> The number of numeric attributes (default 1).
-string <num> The number of string attributes (default 1).
-date <num> The number of date attributes (default 1).
-relational <num> The number of relational attributes (default 1).
-num-instances-relational <num> The number of instances in relational/bag attributes (default 10).
-words <comma-separated-list> The words to use in string attributes.
-word-separators <chars> The word separators to use in string attributes.
-eval name [options] Full name and options of the evaluator analyzed. eg: weka.attributeSelection.CfsSubsetEval
-search name [options] Full name and options of the search method analyzed. eg: weka.attributeSelection.Ranker
-test <eval|search> The scheme to test, either the evaluator or the search method. (Default: eval)
Options specific to evaluator weka.attributeSelection.CfsSubsetEval:
-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
Options specific to search method weka.attributeSelection.Ranker:
-P <start set> Specify a starting set of attributes. Eg. 1,3,5-7. Any starting attributes specified are ignored during the ranking.
-T <threshold> Specify a theshold by which attributes may be discarded from the ranking.
-N <num to select> Specify number of attributes to select
setOptions in interface OptionHandlersetOptions in class CheckSchemeoptions - 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 CheckSchemepublic void doTests()
doTests in class CheckSchemepublic void setEvaluator(ASEvaluation value)
value - the evaluator to use.public ASEvaluation getEvaluator()
public void setSearch(ASSearch value)
value - the search method to use.public ASSearch getSearch()
public void setTestEvaluator(boolean value)
value - if true then the evaluator will be testedpublic boolean getTestEvaluator()
public java.lang.String getRevision()
public static void main(java.lang.String[] args)
args - the commandline parameters