public abstract class ASEvaluation extends java.lang.Object implements java.io.Serializable, CapabilitiesHandler, CapabilitiesIgnorer, RevisionHandler, CommandlineRunnable, OptionHandler
| Constructor and Description |
|---|
ASEvaluation() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
buildEvaluator(Instances data)
Generates a attribute evaluator.
|
void |
clean()
Tells the evaluator that the attribute selection process is complete.
|
java.lang.String |
doNotCheckCapabilitiesTipText()
Returns the tip text for this property
|
static ASEvaluation |
forName(java.lang.String evaluatorName,
java.lang.String[] options)
Creates a new instance of an attribute/subset evaluator given it's class
name and (optional) arguments to pass to it's setOptions method.
|
Capabilities |
getCapabilities()
Returns the capabilities of this evaluator.
|
boolean |
getDoNotCheckCapabilities()
Get whether capabilities checking is turned off.
|
java.lang.String[] |
getOptions()
Gets the current settings of the evaluator.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static ASEvaluation[] |
makeCopies(ASEvaluation model,
int num)
Creates copies of the current evaluator.
|
void |
postExecution()
Perform any teardown stuff that might need to happen after execution.
|
int[] |
postProcess(int[] attributeSet)
Provides a chance for a attribute evaluator to do any special post
processing of the selected attribute set.
|
void |
preExecution()
Perform any setup stuff that might need to happen before commandline
execution.
|
void |
run(java.lang.Object toRun,
java.lang.String[] options)
Execute the supplied object.
|
static void |
runEvaluator(ASEvaluation evaluator,
java.lang.String[] options)
runs the evaluator with the given commandline options
|
void |
setDoNotCheckCapabilities(boolean doNotCheckCapabilities)
Set whether not to check capabilities.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCopypublic java.lang.String doNotCheckCapabilitiesTipText()
public void setDoNotCheckCapabilities(boolean doNotCheckCapabilities)
setDoNotCheckCapabilities in interface CapabilitiesIgnorerdoNotCheckCapabilities - true if capabilities are not to be checked.public boolean getDoNotCheckCapabilities()
getDoNotCheckCapabilities in interface CapabilitiesIgnorerpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic abstract void buildEvaluator(Instances data) throws java.lang.Exception
data - set of instances serving as training datajava.lang.Exception - if the evaluator has not been generated successfullypublic int[] postProcess(int[] attributeSet)
throws java.lang.Exception
attributeSet - the set of attributes found by the searchjava.lang.Exception - if postprocessing fails for some reasonpublic static ASEvaluation forName(java.lang.String evaluatorName, java.lang.String[] options) throws java.lang.Exception
evaluatorName - the fully qualified class name of the evaluatoroptions - an array of options suitable for passing to setOptions. May
be null.java.lang.Exception - if the evaluator name is invalid, or the options
supplied are not acceptable to the evaluatorpublic static ASEvaluation[] makeCopies(ASEvaluation model, int num) throws java.lang.Exception
model - an example evaluator to copynum - the number of evaluator copies to create.java.lang.Exception - if an error occurspublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlerCapabilitiespublic java.lang.String getRevision()
getRevision in interface RevisionHandlerpublic void clean()
public static void runEvaluator(ASEvaluation evaluator, java.lang.String[] options)
evaluator - the evaluator to runoptions - the commandline optionspublic void preExecution()
throws java.lang.Exception
preExecution in interface CommandlineRunnablejava.lang.Exception - if a problem occurs during setuppublic void run(java.lang.Object toRun,
java.lang.String[] options)
throws java.lang.Exception
run in interface CommandlineRunnabletoRun - the object to executeoptions - any options to pass to the objectjava.lang.Exception - if a problem occurspublic void postExecution()
throws java.lang.Exception
postExecution in interface CommandlineRunnablejava.lang.Exception - if a problem occurs during teardown