public abstract class ASEvaluation extends Object implements Serializable, CapabilitiesHandler, CapabilitiesIgnorer, RevisionHandler
| Constructor and Description |
|---|
ASEvaluation() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
buildEvaluator(Instances data)
Generates a attribute evaluator.
|
String |
doNotCheckCapabilitiesTipText()
Returns the tip text for this property
|
static ASEvaluation |
forName(String evaluatorName,
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.
|
String |
getRevision()
Returns the revision string.
|
static ASEvaluation[] |
makeCopies(ASEvaluation model,
int num)
Creates copies of the current evaluator.
|
int[] |
postProcess(int[] attributeSet)
Provides a chance for a attribute evaluator to do any special post
processing of the selected attribute set.
|
static void |
runEvaluator(ASEvaluation evaluator,
String[] options)
runs the evaluator with the given commandline options
|
void |
setDoNotCheckCapabilities(boolean doNotCheckCapabilities)
Set whether not to check capabilities.
|
public 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 abstract void buildEvaluator(Instances data) throws Exception
data - set of instances serving as training dataException - if the evaluator has not been generated successfullypublic int[] postProcess(int[] attributeSet)
throws Exception
attributeSet - the set of attributes found by the searchException - if postprocessing fails for some reasonpublic static ASEvaluation forName(String evaluatorName, String[] options) throws Exception
evaluatorName - the fully qualified class name of the evaluatoroptions - an array of options suitable for passing to setOptions. May
be null.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 Exception
model - an example evaluator to copynum - the number of evaluator copies to create.Exception - if an error occurspublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlerCapabilitiespublic String getRevision()
getRevision in interface RevisionHandlerpublic static void runEvaluator(ASEvaluation evaluator, String[] options)
evaluator - the evaluator to runoptions - the commandline optionsCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.