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.

Version:
$Revision: 1.6 $
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

Constructor Detail

 o RankSearch
public RankSearch()

Method Detail

 o globalInfo
public java.lang.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 java.lang.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 java.util.Enumeration listOptions()
          Returns an enumeration describing the available options
Returns:
an enumeration of all the available options
 o setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
          Parses a given list of options. Valid options are:

-A

Parameters:
options - the list of options as an array of strings
Throws:
java.lang.Exception - if an option is not supported
 o getOptions
public java.lang.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 java.lang.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:
java.lang.Exception - if the search can't be completed
Overrides:
search in class ASSearch
 o toString
public java.lang.String toString()
          returns a description of the search as a String
Returns:
a description of the search
Overrides:
toString in class java.lang.Object

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