public abstract class ASSearch extends Object implements Serializable, RevisionHandler, OptionHandler
| Constructor and Description |
|---|
ASSearch() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String[] |
getOptions()
Gets the current settings of the search.
|
String |
getRevision()
Returns the revision string.
|
Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static ASSearch[] |
makeCopies(ASSearch model,
int num)
Creates copies of the current search scheme.
|
abstract int[] |
search(ASEvaluation ASEvaluator,
Instances data)
Searches the attribute subset/ranking space.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopypublic Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerpublic String getRevision()
getRevision in interface RevisionHandlerpublic abstract int[] search(ASEvaluation ASEvaluator, Instances data) throws Exception
ASEvaluator - the attribute evaluator to guide the searchdata - the training instances.Exception - if the search can't be completedpublic static ASSearch forName(String searchName, String[] options) throws Exception
searchName - the fully qualified class name of the search classoptions - an array of options suitable for passing to setOptions. May
be null.Exception - if the search class name is invalid, or the options
supplied are not acceptable to the search class.public static ASSearch[] makeCopies(ASSearch model, int num) throws Exception
model - an example search scheme to copynum - the number of search scheme copies to create.Exception - if an error occursCopyright © 2020 University of Waikato, Hamilton, NZ. All rights reserved.