All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object | +----weka.attributeSelection.ASSearch | +----weka.attributeSelection.RandomSearch
Valid options are:
-P
-F
-V
-P
-F
-V
Specify a starting set of attributes. Eg 1,4,7-9.
Verbose output. Output new best subsets as the search progresses.
RandomSearch()
getOptions()
getSearchPercent()
getStartSet()
getVerbose()
globalInfo()
listOptions()
search(ASEvaluation, Instances)
searchPercentTipText()
setOptions(String[])
setSearchPercent(double)
setStartSet(String)
setVerbose(boolean)
startSetTipText()
toString()
verboseTipText()
RandomSearch
public RandomSearch()
Constructor
globalInfo
public java.lang.String globalInfo()
Returns a string describing this search method
listOptions
public java.util.Enumeration listOptions()
Returns an enumeration describing the available options
setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
Parses a given list of options.
Valid options are:
Specify a starting set of attributes. Eg 1,4,7-9.
Verbose output. Output new best subsets as the search progresses.
options
- the list of options as an array of strings
startSetTipText
public java.lang.String startSetTipText()
Returns the tip text for this property
setStartSet
public void setStartSet(java.lang.String startSet) throws java.lang.Exception
Sets a starting set of attributes for the search. It is the
search method's responsibility to report this start set (if any)
in its toString() method.
startSet
- a string containing a list of attributes (and or ranges),
eg. 1,2,6,10-15. "" indicates no start point.
If a start point is supplied, random search evaluates the
start point and then looks for subsets that are as good as or better
than the start point with the same or lower cardinality.
getStartSet
public java.lang.String getStartSet()
Returns a list of attributes (and or attribute ranges) as a String
verboseTipText
public java.lang.String verboseTipText()
Returns the tip text for this property
setVerbose
public void setVerbose(boolean v)
set whether or not to output new best subsets as the search proceeds
v
- true if output is to be verbose
getVerbose
public boolean getVerbose()
get whether or not output is verbose
searchPercentTipText
public java.lang.String searchPercentTipText()
Returns the tip text for this property
setSearchPercent
public void setSearchPercent(double p)
set the percentage of the search space to consider
p
- percent of the search space ( 0 < p <= 100)
getSearchPercent
public double getSearchPercent()
get the percentage of the search space to consider
getOptions
public java.lang.String[] getOptions()
Gets the current settings of RandomSearch.
toString
public java.lang.String toString()
prints a description of the search
search
public int[] search(ASEvaluation ASEval,
Instances data) throws java.lang.Exception
Searches the attribute subset space using a genetic algorithm.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home