All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object | +----weka.attributeSelection.ASSearch | +----weka.attributeSelection.Ranker
-P
-T
-P
-T
-N
Specify a starting set of attributes. Eg 1,4,7-9.
Specify a threshold by which the AttributeSelection module can.
discard attributes.
Ranker()
generateRankingTipText()
getCalculatedNumToSelect()
getGenerateRanking()
getNumToSelect()
getOptions()
getStartSet()
getThreshold()
globalInfo()
listOptions()
numToSelectTipText()
rankedAttributes()
search(ASEvaluation, Instances)
setGenerateRanking(boolean)
setNumToSelect(int)
setOptions(String[])
setStartSet(String)
setThreshold(double)
startSetTipText()
thresholdTipText()
toString()
Ranker
public Ranker()
Constructor
globalInfo
public java.lang.String globalInfo()
Returns a string describing this search method
numToSelectTipText
public java.lang.String numToSelectTipText()
Returns the tip text for this property
setNumToSelect
public void setNumToSelect(int n)
Specify the number of attributes to select from the ranked list. -1
indicates that all attributes are to be retained.
n
- the number of attributes to retain
getNumToSelect
public int getNumToSelect()
Gets the number of attributes to be retained.
getCalculatedNumToSelect
public int getCalculatedNumToSelect()
Gets the calculated number to select. This might be computed
from a threshold, or if < 0 is set as the number to select then
it is set to the number of attributes in the (transformed) data.
thresholdTipText
public java.lang.String thresholdTipText()
Returns the tip text for this property
setThreshold
public void setThreshold(double threshold)
Set the threshold by which the AttributeSelection module can discard
attributes.
threshold
- the threshold.
getThreshold
public double getThreshold()
Returns the threshold so that the AttributeSelection module can
discard attributes from the ranking.
generateRankingTipText
public java.lang.String generateRankingTipText()
Returns the tip text for this property
setGenerateRanking
public void setGenerateRanking(boolean doRank)
This is a dummy set method---Ranker is ONLY capable of producing
a ranked list of attributes for attribute evaluators.
doRank
- this parameter is N/A and is ignored
getGenerateRanking
public boolean getGenerateRanking()
This is a dummy method. Ranker can ONLY be used with attribute
evaluators and as such can only produce a ranked list of attributes
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.
getStartSet
public java.lang.String getStartSet()
Returns a list of attributes (and or attribute ranges) as a String
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.
Specify a threshold by which the AttributeSelection module can
discard attributes.
Specify the number of attributes to retain. Overides any threshold.
options
- the list of options as an array of strings
getOptions
public java.lang.String[] getOptions()
Gets the current settings of ReliefFAttributeEval.
search
public int[] search(ASEvaluation ASEval,
Instances data) throws java.lang.Exception
Kind of a dummy search algorithm. Calls a Attribute evaluator to
evaluate each attribute not included in the startSet and then sorts
them to produce a ranked list of attributes.
rankedAttributes
public double[][] rankedAttributes() throws java.lang.Exception
Sorts the evaluated attribute list
toString
public java.lang.String toString()
returns a description of the search as a String
All Packages Class Hierarchy This Package Previous Next Index WEKA's home