|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.weka.evaluator.AbstractInstanceEvaluator
public abstract class AbstractInstanceEvaluator
Ancestor for evaluators that evaluate weka.core.Instance objects.
| Field Summary | |
|---|---|
protected boolean |
m_Initialized
whether the evaluator got initialized. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractInstanceEvaluator()
|
|
| Method Summary | |
|---|---|
protected String |
check(weka.core.Instance inst)
Peforms checks on the instance that is about to be evaluated. |
void |
cleanUp()
Cleans up data structures, frees up memory. |
int |
compareTo(Object o)
Compares this object with the specified object for order. |
void |
destroy()
Frees up memory in a "destructive" non-reversible way. |
protected abstract double |
doEvaluate(weka.core.Instance inst)
Performs the actual evaluation. |
boolean |
equals(Object o)
Returns whether the two objects are the same. |
double |
evaluate(weka.core.Instance inst)
Evaluates the given instance. |
static AbstractInstanceEvaluator |
forCommandLine(String cmdline)
Instantiates the evaluator from the given commandline (i.e., classname and optional options). |
static AbstractInstanceEvaluator |
forName(String classname,
String[] options)
Instantiates the evaluator with the given options. |
static String[] |
getEvaluators()
Returns a list with classnames of evaluators. |
protected void |
reset()
Resets the scheme. |
protected String |
setUp()
Performs necessary initializations before being able to evaluate. |
AbstractInstanceEvaluator |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
AbstractInstanceEvaluator |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean m_Initialized
| Constructor Detail |
|---|
public AbstractInstanceEvaluator()
| Method Detail |
|---|
protected void reset()
reset in class AbstractOptionHandlerprotected String setUp()
protected String check(weka.core.Instance inst)
inst - the instance to evaluate
protected abstract double doEvaluate(weka.core.Instance inst)
inst - the instance to evaluate
public double evaluate(weka.core.Instance inst)
inst - the instance to evaluate
public int compareTo(Object o)
o - the object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this object.public boolean equals(Object o)
equals in class Objecto - the object to be compared
public AbstractInstanceEvaluator shallowCopy()
public AbstractInstanceEvaluator shallowCopy(boolean expand)
expand - whether to expand variables to their current values
public static String[] getEvaluators()
public static AbstractInstanceEvaluator forName(String classname,
String[] options)
classname - the classname of the evaluator to instantiateoptions - the options for the evaluator
public static AbstractInstanceEvaluator forCommandLine(String cmdline)
cmdline - the classname (and optional options) of the
evaluator to instantiate
public void cleanUp()
cleanUp in interface CleanUpHandlerpublic void destroy()
destroy in interface Destroyabledestroy in class AbstractOptionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||