public abstract class ASSearch extends java.lang.Object implements java.io.Serializable, RevisionHandler, OptionHandler
Constructor and Description |
---|
ASSearch() |
Modifier and Type | Method and Description |
---|---|
static ASSearch |
forName(java.lang.String searchName,
java.lang.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.
|
java.lang.String[] |
getOptions()
Gets the current settings of the search.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.util.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(java.lang.String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeCopy
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
public abstract int[] search(ASEvaluation ASEvaluator, Instances data) throws java.lang.Exception
ASEvaluator
- the attribute evaluator to guide the searchdata
- the training instances.java.lang.Exception
- if the search can't be completedpublic static ASSearch forName(java.lang.String searchName, java.lang.String[] options) throws java.lang.Exception
searchName
- the fully qualified class name of the search classoptions
- an array of options suitable for passing to setOptions. May
be null.java.lang.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 java.lang.Exception
model
- an example search scheme to copynum
- the number of search scheme copies to create.java.lang.Exception
- if an error occurs