类 Ranker
java.lang.Object
weka.attributeSelection.ASSearch
weka.attributeSelection.Ranker
Ranker :
Ranks attributes by their individual evaluations. Use in conjunction with attribute evaluators (ReliefF, GainRatio, Entropy etc).
Valid options are:
Ranks attributes by their individual evaluations. Use in conjunction with attribute evaluators (ReliefF, GainRatio, Entropy etc).
Valid options are:
-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
- 版本:
- $Revision: 1.26 $
- 作者:
- Mark Hall (mhall@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyint
Gets the calculated number to select.boolean
This is a dummy method.int
Gets the number of attributes to be retained.String[]
Gets the current settings of ReliefFAttributeEval.Returns the revision string.Returns a list of attributes (and or attribute ranges) as a Stringdouble
Returns the threshold so that the AttributeSelection module can discard attributes from the ranking.Returns a string describing this search methodReturns an enumeration describing the available options.Returns the tip text for this propertydouble[][]
Sorts the evaluated attribute listint[]
search
(ASEvaluation ASEval, Instances data) Kind of a dummy search algorithm.void
setGenerateRanking
(boolean doRank) This is a dummy set method---Ranker is ONLY capable of producing a ranked list of attributes for attribute evaluators.void
setNumToSelect
(int n) Specify the number of attributes to select from the ranked list.void
setOptions
(String[] options) Parses a given list of options.void
setStartSet
(String startSet) Sets a starting set of attributes for the search.void
setThreshold
(double threshold) Set the threshold by which the AttributeSelection module can discard attributes.Returns the tip text for this propertyReturns the tip text for this propertytoString()
returns a description of the search as a String从类继承的方法 weka.attributeSelection.ASSearch
forName, makeCopies
-
构造器详细资料
-
Ranker
public Ranker()Constructor
-
-
方法详细资料
-
globalInfo
Returns a string describing this search method- 返回:
- a description of the search suitable for displaying in the explorer/experimenter gui
-
numToSelectTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
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.- 指定者:
setNumToSelect
在接口中RankedOutputSearch
- 参数:
n
- the number of attributes to retain
-
getNumToSelect
public int getNumToSelect()Gets the number of attributes to be retained.- 指定者:
getNumToSelect
在接口中RankedOutputSearch
- 返回:
- the number of attributes to retain
-
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.- 指定者:
getCalculatedNumToSelect
在接口中RankedOutputSearch
- 返回:
- the calculated number of attributes to select
-
thresholdTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setThreshold
public void setThreshold(double threshold) Set the threshold by which the AttributeSelection module can discard attributes.- 指定者:
setThreshold
在接口中RankedOutputSearch
- 参数:
threshold
- the threshold.
-
getThreshold
public double getThreshold()Returns the threshold so that the AttributeSelection module can discard attributes from the ranking.- 指定者:
getThreshold
在接口中RankedOutputSearch
- 返回:
- a threshold by which to discard attributes
-
generateRankingTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
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.- 指定者:
setGenerateRanking
在接口中RankedOutputSearch
- 参数:
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- 指定者:
getGenerateRanking
在接口中RankedOutputSearch
- 返回:
- true all the time.
-
startSetTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setStartSet
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.- 指定者:
setStartSet
在接口中StartSetHandler
- 参数:
startSet
- a string containing a list of attributes (and or ranges), eg. 1,2,6,10-15.- 抛出:
Exception
- if start set can't be set.
-
getStartSet
Returns a list of attributes (and or attribute ranges) as a String- 指定者:
getStartSet
在接口中StartSetHandler
- 返回:
- a list of attributes (and or attribute ranges)
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-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
在接口中OptionHandler
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of ReliefFAttributeEval.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions()
-
search
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
Sorts the evaluated attribute list- 指定者:
rankedAttributes
在接口中RankedOutputSearch
- 返回:
- an array of sorted (highest eval to lowest) attribute indexes
- 抛出:
Exception
- of sorting can't be done.
-
toString
returns a description of the search as a String -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中ASSearch
- 返回:
- the revision
-