|
||||||||||
| 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.AbstractWekaPredictionsTransformer
public abstract class AbstractWekaPredictionsTransformer
Ancestor for transformers that convert the predictions stored in an Evaluation object into a different format.
| Field Summary | |
|---|---|
protected boolean |
m_AddLabelIndex
whether to prefix the labels with a 1-based index (only nominal classes). |
protected boolean |
m_ShowDistribution
whether to output the class distribution (only nominal classes). |
protected boolean |
m_ShowError
whether to add an error colunm. |
protected boolean |
m_ShowProbability
whether to output the probability of the prediction (only nominal classes). |
protected boolean |
m_ShowWeight
whether to output the weight as well. |
| 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 | |
|---|---|
AbstractWekaPredictionsTransformer()
|
|
| Method Summary | |
|---|---|
Class[] |
accepts()
Returns the class that the consumer accepts. |
String |
addLabelIndexTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
boolean |
getAddLabelIndex()
Returns whether to show the error as well. |
boolean |
getShowDistribution()
Returns whether to show the class distribution as well. |
boolean |
getShowError()
Returns whether to show the error as well. |
boolean |
getShowProbability()
Returns whether to show the probability as well. |
boolean |
getShowWeight()
Returns whether to show the weight as well. |
void |
setAddLabelIndex(boolean value)
Sets whether to prefix the labels with the index. |
void |
setShowDistribution(boolean value)
Sets whether to show the class distribution as well. |
void |
setShowError(boolean value)
Sets whether to show the error as well. |
void |
setShowProbability(boolean value)
Sets whether to show the probability of the prediction as well. |
void |
setShowWeight(boolean value)
Sets whether to show the weight as well. |
String |
showDistributionTipText()
Returns the tip text for this property. |
String |
showErrorTipText()
Returns the tip text for this property. |
String |
showProbabilityTipText()
Returns the tip text for this property. |
String |
showWeightTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.flow.transformer.AbstractTransformer |
|---|
backupState, execute, hasPendingOutput, input, output, postExecute, reset, restoreState, wrapUp |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, globalInfo, 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 |
| Methods inherited from interface adams.flow.core.OutputProducer |
|---|
generates |
| Field Detail |
|---|
protected boolean m_AddLabelIndex
protected boolean m_ShowError
protected boolean m_ShowProbability
protected boolean m_ShowDistribution
protected boolean m_ShowWeight
| Constructor Detail |
|---|
public AbstractWekaPredictionsTransformer()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic void setAddLabelIndex(boolean value)
value - true if the label is prefixed with the indexpublic boolean getAddLabelIndex()
public String addLabelIndexTipText()
public void setShowError(boolean value)
value - true if the error is to be displayed as wellpublic boolean getShowError()
public String showErrorTipText()
public void setShowProbability(boolean value)
value - true if the probability is to be displayed as wellpublic boolean getShowProbability()
public String showProbabilityTipText()
public void setShowDistribution(boolean value)
value - true if the class distribution is to be displayed as wellpublic boolean getShowDistribution()
public String showDistributionTipText()
public void setShowWeight(boolean value)
value - true if the weight is to be displayed as wellpublic boolean getShowWeight()
public String showWeightTipText()
public Class[] accepts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||