public class RankSearch extends ASSearch implements OptionHandler, TechnicalInformationHandler
-A <attribute evaluator> class name of attribute evaluator to use for ranking. Place any evaluator options LAST on the command line following a "--". eg.: -A weka.attributeSelection.GainRatioAttributeEval ... -- -M (default: weka.attributeSelection.GainRatioAttributeEval)
-S <step size> number of attributes to be added from the ranking in each iteration (default = 1).
-R <start point> point in the ranking to start evaluating from. (default = 0, ie. the head of the ranking).
Options specific to evaluator weka.attributeSelection.GainRatioAttributeEval:
-M treat missing values as a seperate value.
Constructor and Description |
---|
RankSearch()
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
attributeEvaluatorTipText()
Returns the tip text for this property
|
ASEvaluation |
getAttributeEvaluator()
Get the attribute evaluator used to generate the ranking.
|
String[] |
getOptions()
Gets the current settings of WrapperSubsetEval.
|
String |
getRevision()
Returns the revision string.
|
int |
getStartPoint()
Get the point at which to start evaluating the ranking
|
int |
getStepSize()
Get the number of attributes to add from the rankining
in each iteration
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
String |
globalInfo()
Returns a string describing this search method
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
int[] |
search(ASEvaluation ASEval,
Instances data)
Ranks attributes using the specified attribute evaluator and then
searches the ranking using the supplied subset evaluator.
|
void |
setAttributeEvaluator(ASEvaluation newEvaluator)
Set the attribute evaluator to use for generating the ranking.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setStartPoint(int sp)
Set the point at which to start evaluating the ranking
|
void |
setStepSize(int ss)
Set the number of attributes to add from the rankining
in each iteration
|
String |
startPointTipText()
Returns the tip text for this property
|
String |
stepSizeTipText()
Returns the tip text for this property
|
String |
toString()
returns a description of the search as a String
|
forName, makeCopies
public String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public String attributeEvaluatorTipText()
public void setAttributeEvaluator(ASEvaluation newEvaluator)
newEvaluator
- the attribute evaluator to use.public ASEvaluation getAttributeEvaluator()
public String stepSizeTipText()
public void setStepSize(int ss)
ss
- the number of attribes to add.public int getStepSize()
public String startPointTipText()
public void setStartPoint(int sp)
sp
- the position in the ranking to start atpublic int getStartPoint()
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
-A <attribute evaluator> class name of attribute evaluator to use for ranking. Place any evaluator options LAST on the command line following a "--". eg.: -A weka.attributeSelection.GainRatioAttributeEval ... -- -M (default: weka.attributeSelection.GainRatioAttributeEval)
-S <step size> number of attributes to be added from the ranking in each iteration (default = 1).
-R <start point> point in the ranking to start evaluating from. (default = 0, ie. the head of the ranking).
Options specific to evaluator weka.attributeSelection.GainRatioAttributeEval:
-M treat missing values as a seperate value.
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public int[] search(ASEvaluation ASEval, Instances data) throws Exception
public String toString()
public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ASSearch
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.