|
||||||||||
| 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.flow.core.AbstractActor
adams.flow.transformer.AbstractTransformer
adams.flow.transformer.WekaAccumulatedError
public class WekaAccumulatedError
Generates plot containers from an evaluation object's predictions. The predictions are first sorted according to their error, smallest to largest, and then plot containers are created with the RMSE being accumulated.
Input/output:-D (property: debug) If set to true, scheme may output additional info to the console.
-name <java.lang.String> (property: name) The name of the actor. default: AccumulatedError
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-plot-name <java.lang.String> (property: plotName) The name for the plot. default: Plot
| Nested Class Summary | |
|---|---|
static class |
WekaAccumulatedError.SortablePrediction
Container for a classifier prediction, used for sorting. |
| Field Summary | |
|---|---|
static String |
BACKUP_ACCUMULATEDERROR
the key for storing the current accumulated error in the backup. |
static String |
BACKUP_NUMPREDICTIONS
the key for storing the current number of predictions in the backup. |
static String |
BACKUP_PREDICTIONS
the key for storing the current predictions in the backup. |
protected double |
m_AccumulatdError
the accumulated error so far. |
protected int |
m_NumPredictions
the number of overall predictions. |
protected String |
m_PlotName
the name of the plot. |
protected Vector<WekaAccumulatedError.SortablePrediction> |
m_Predictions
the sorted predictions. |
| Fields inherited from class adams.flow.transformer.AbstractTransformer |
|---|
BACKUP_INPUT, BACKUP_OUTPUT, m_InputToken, m_OutputToken |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
WekaAccumulatedError()
|
|
| Method Summary | |
|---|---|
Class[] |
accepts()
Returns the class that the consumer accepts. |
protected Hashtable<String,Object> |
backupState()
Backs up the current state of the actor before update the variables. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
Class[] |
generates()
Returns the class of objects that it generates. |
String |
getPlotName()
Returns the current plot name. |
String |
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI. |
String |
globalInfo()
Returns a string describing the object. |
boolean |
hasPendingOutput()
Checks whether there is pending output to be collected after executing the flow item. |
Token |
output()
Returns the generated token. |
String |
plotNameTipText()
Returns the tip text for this property. |
protected void |
pruneBackup()
Removes entries from the backup. |
protected void |
reset()
Resets the scheme. |
protected void |
restoreState(Hashtable<String,Object> state)
Restores the state of the actor before the variables got updated. |
void |
setPlotName(String value)
Sets the plot name. |
void |
wrapUp()
Cleans up after the execution has finished. |
| Methods inherited from class adams.flow.transformer.AbstractTransformer |
|---|
execute, input, postExecute |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String BACKUP_PREDICTIONS
public static final String BACKUP_NUMPREDICTIONS
public static final String BACKUP_ACCUMULATEDERROR
protected String m_PlotName
protected Vector<WekaAccumulatedError.SortablePrediction> m_Predictions
protected int m_NumPredictions
protected double m_AccumulatdError
| Constructor Detail |
|---|
public WekaAccumulatedError()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic String getQuickInfo()
getQuickInfo in interface QuickInfoSupportergetQuickInfo in class AbstractActorpublic void setPlotName(String value)
value - the namepublic String getPlotName()
public String plotNameTipText()
public Class[] accepts()
protected void pruneBackup()
pruneBackup in class AbstractActorprotected Hashtable<String,Object> backupState()
backupState in class AbstractTransformerprotected void restoreState(Hashtable<String,Object> state)
restoreState in class AbstractTransformerstate - the backup of the state to restore fromprotected void reset()
reset in class AbstractTransformerprotected String doExecute()
doExecute in class AbstractActorpublic Class[] generates()
public boolean hasPendingOutput()
hasPendingOutput in interface OutputProducerhasPendingOutput in class AbstractTransformerpublic Token output()
output in interface OutputProduceroutput in class AbstractTransformerpublic void wrapUp()
wrapUp in class AbstractTransformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||