| java.lang.Object weka.attributeSelection.ASSearch
All known Subclasses: weka.attributeSelection.GreedyStepwise, weka.attributeSelection.RankSearch, weka.attributeSelection.ExhaustiveSearch, weka.attributeSelection.FCBFSearch, weka.attributeSelection.RaceSearch, weka.attributeSelection.BestFirst, weka.attributeSelection.GeneticSearch, weka.attributeSelection.Ranker, weka.attributeSelection.RandomSearch,
ASSearch | abstract public class ASSearch implements Serializable(Code) | | Abstract attribute selection search class.
author: Mark Hall (mhall@cs.waikato.ac.nz) version: $Revision: 1.11 $ |
Method Summary | |
public static ASSearch | forName(String searchName, String[] options) Creates a new instance of a search class given it's class name and
(optional) arguments to pass to it's setOptions method. | public static ASSearch[] | makeCopies(ASSearch model, int num) Creates copies of the current search scheme. | abstract public int[] | search(ASEvaluation ASEvaluator, Instances data) Searches the attribute subset/ranking space.
Parameters: ASEvaluator - the attribute evaluator to guide the search Parameters: data - the training instances. |
forName | public static ASSearch forName(String searchName, String[] options) throws Exception(Code) | | Creates a new instance of a search class given it's class name and
(optional) arguments to pass to it's setOptions method. If the
search method implements OptionHandler and the options parameter is
non-null, the search method will have it's options set.
Parameters: searchName - the fully qualified class name of the search class Parameters: options - an array of options suitable for passing to setOptions. Maybe null. the newly created search object, ready for use. throws: Exception - if the search class name is invalid, or the optionssupplied are not acceptable to the search class. |
makeCopies | public static ASSearch[] makeCopies(ASSearch model, int num) throws Exception(Code) | | Creates copies of the current search scheme. Note that this method
now uses Serialization to perform a deep copy, so the search
object must be fully Serializable. Any currently built model will
now be copied as well.
Parameters: model - an example search scheme to copy Parameters: num - the number of search scheme copies to create. an array of search schemes. throws: Exception - if an error occurs |
search | abstract public int[] search(ASEvaluation ASEvaluator, Instances data) throws Exception(Code) | | Searches the attribute subset/ranking space.
Parameters: ASEvaluator - the attribute evaluator to guide the search Parameters: data - the training instances. an array (not necessarily ordered) of selected attribute indexes throws: Exception - if the search can't be completed |
|
|