Package weka.attributeSelection
Class ExhaustiveSearch
java.lang.Object
weka.attributeSelection.ASSearch
weka.attributeSelection.ExhaustiveSearch
- All Implemented Interfaces:
Serializable
,OptionHandler
,RevisionHandler
ExhaustiveSearch :
Performs an exhaustive search through the space of attribute subsets starting from the empty set of attrubutes. Reports the best subset found. Valid options are:
Performs an exhaustive search through the space of attribute subsets starting from the empty set of attrubutes. Reports the best subset found. Valid options are:
-V Output subsets as the search progresses. (default = false).
- Version:
- $Revision: 1.15 $
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Gets the current settings of RandomSearch.Returns the revision string.boolean
get whether or not output is verboseReturns a string describing this search methodReturns an enumeration describing the available options.int[]
search
(ASEvaluation ASEval, Instances data) Searches the attribute subset space using an exhaustive search.void
setOptions
(String[] options) Parses a given list of options.void
setVerbose
(boolean v) set whether or not to output new best subsets as the search proceedstoString()
prints a description of the searchReturns the tip text for this propertyMethods inherited from class weka.attributeSelection.ASSearch
forName, makeCopies
-
Constructor Details
-
ExhaustiveSearch
public ExhaustiveSearch()Constructor
-
-
Method Details
-
globalInfo
Returns a string describing this search method- Returns:
- a description of the search suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- Specified by:
listOptions
in interfaceOptionHandler
- Returns:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-V Output subsets as the search progresses. (default = false).
- Specified by:
setOptions
in interfaceOptionHandler
- Parameters:
options
- the list of options as an array of strings- Throws:
Exception
- if an option is not supported
-
verboseTipText
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setVerbose
public void setVerbose(boolean v) set whether or not to output new best subsets as the search proceeds- Parameters:
v
- true if output is to be verbose
-
getVerbose
public boolean getVerbose()get whether or not output is verbose- Returns:
- true if output is set to verbose
-
getOptions
Gets the current settings of RandomSearch.- Specified by:
getOptions
in interfaceOptionHandler
- Returns:
- an array of strings suitable for passing to setOptions()
-
toString
prints a description of the search -
search
Searches the attribute subset space using an exhaustive search. -
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Overrides:
getRevision
in classASSearch
- Returns:
- the revision
-