All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.attributeSelection.RankSearch

java.lang.Object
   |
   +----weka.attributeSelection.ASSearch
           |
           +----weka.attributeSelection.RankSearch

public class RankSearch
extends ASSearch
implements OptionHandler
Class for evaluating a attribute ranking (given by a specified evaluator) using a specified subset evaluator.

Valid options are:

-A
Specify the attribute/subset evaluator to be used for generating the ranking. If a subset evaluator is specified then a forward selection search is used to produce a ranked list of attributes.

Author:
Mark Hall (mhall@cs.waikato.ac.nz)

Constructor Index

 o RankSearch()

Method Index

 o attributeEvaluatorTipText()
Returns the tip text for this property
 o getAttributeEvaluator()
Get the attribute evaluator used to generate the ranking.
 o getOptions()
Gets the current settings of WrapperSubsetEval.
 o globalInfo()
Returns a string describing this search method
 o listOptions()
Returns an enumeration describing the available options
 o search(ASEvaluation, Instances)
Ranks attributes using the specified attribute evaluator and then searches the ranking using the supplied subset evaluator.
 o setAttributeEvaluator(ASEvaluation)
Set the attribute evaluator to use for generating the ranking.
 o setOptions(String[])
Parses a given list of options.
 o toString()
returns a description of the search as a String

Constructors

 o RankSearch
 public RankSearch()

Methods

 o globalInfo
 public String globalInfo()
Returns a string describing this search method

Returns:
a description of the search method suitable for displaying in the explorer/experimenter gui
 o attributeEvaluatorTipText
 public String attributeEvaluatorTipText()
Returns the tip text for this property

Returns:
tip text for this property suitable for displaying in the explorer/experimenter gui
 o setAttributeEvaluator
 public void setAttributeEvaluator(ASEvaluation newEvaluator)
Set the attribute evaluator to use for generating the ranking.

Parameters:
newEvaluator - the attribute evaluator to use.
 o getAttributeEvaluator
 public ASEvaluation getAttributeEvaluator()
Get the attribute evaluator used to generate the ranking.

Returns:
the evaluator used to generate the ranking.
 o listOptions
 public Enumeration listOptions()
Returns an enumeration describing the available options

Returns:
an enumeration of all the available options
 o setOptions
 public void setOptions(String options[]) throws Exception
Parses a given list of options. Valid options are:

-A

Parameters:
options - the list of options as an array of strings
Throws: Exception
if an option is not supported
 o getOptions
 public String[] getOptions()
Gets the current settings of WrapperSubsetEval.

Returns:
an array of strings suitable for passing to setOptions()
 o search
 public int[] search(ASEvaluation ASEval,
                     Instances data) throws Exception
Ranks attributes using the specified attribute evaluator and then searches the ranking using the supplied subset evaluator.

Parameters:
ASEvaluator - the subset evaluator to guide the search
data - the training instances.
Returns:
an array (not necessarily ordered) of selected attribute indexes
Throws: Exception
if the search can't be completed
Overrides:
search in class ASSearch
 o toString
 public String toString()
returns a description of the search as a String

Returns:
a description of the search
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home