|
||||||||||
| 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
adams.data.weka.evaluator.AbstractDatasetInstanceEvaluator
public abstract class AbstractDatasetInstanceEvaluator
Ancestor for evaluators that need a data set for initialization.
| Field Summary | |
|---|---|
protected weka.core.Instances |
m_Data
the data set to use for training and other bits. |
protected double |
m_Threshold
the percentage to the threshold. |
| Fields inherited from class adams.data.weka.evaluator.AbstractInstanceEvaluator |
|---|
m_Initialized |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractDatasetInstanceEvaluator()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up data structures, frees up memory. |
void |
defineOptions()
Adds options to the internal list of options. |
protected abstract String |
findThreshold()
Finds the user-defined threshold and sets other internal variables accordingly. |
weka.core.Instances |
getData()
Returns the data to use for training and so forth. |
double |
getThreshold()
Returns the threshold. |
protected void |
reset()
Resets the scheme. |
void |
setData(weka.core.Instances value)
Sets the data set to use for training and so forth. |
void |
setThreshold(double value)
Sets the threshold. |
protected String |
setUp()
Performs necessary initializations before being able to evaluate. |
protected weka.core.Instances[] |
split(weka.core.Instances data,
double percentage)
Splits the dataset into two separate ones, according to the specified percentage (0-1). |
String |
thresholdTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.weka.evaluator.AbstractInstanceEvaluator |
|---|
check, compareTo, destroy, doEvaluate, equals, evaluate, forCommandLine, forName, getEvaluators, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, 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 weka.core.Instances m_Data
protected double m_Threshold
| Constructor Detail |
|---|
public AbstractDatasetInstanceEvaluator()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerprotected void reset()
reset in class AbstractInstanceEvaluatorpublic void setData(weka.core.Instances value)
value - the data setpublic weka.core.Instances getData()
public void setThreshold(double value)
value - the threshold (0-1)public double getThreshold()
public String thresholdTipText()
protected weka.core.Instances[] split(weka.core.Instances data,
double percentage)
data - the data to splitpercentage - the percentage of the split (0-1)
protected abstract String findThreshold()
protected String setUp()
setUp in class AbstractInstanceEvaluatorpublic void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in class AbstractInstanceEvaluatorm_Data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||