adams.flow.transformer
Class AbstractWekaClassifierEvaluator

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.flow.core.AbstractActor
              extended by adams.flow.transformer.AbstractTransformer
                  extended by adams.flow.transformer.AbstractWekaClassifierEvaluator
All Implemented Interfaces:
AdditionalInformationHandler, CleanUpHandler, Debuggable, DebugOutputHandler, Destroyable, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<AbstractActor>, SizeOfHandler, Stoppable, VariableChangeListener, ErrorHandler, InputConsumer, OutputProducer, Serializable, Comparable
Direct Known Subclasses:
AbstractGlobalWekaClassifierEvaluator, WekaTestSetEvaluator

public abstract class AbstractWekaClassifierEvaluator
extends AbstractTransformer

Ancestor for transformers that evaluate classifiers.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
protected  weka.classifiers.evaluation.output.prediction.AbstractOutput m_Output
          for generating predictions output.
protected  StringBuffer m_OutputBuffer
          the buffer for the 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
AbstractWekaClassifierEvaluator()
           
 
Method Summary
 void defineOptions()
          Adds options to the internal list of options.
 Class[] generates()
          Returns the class of objects that it generates.
 weka.classifiers.evaluation.output.prediction.AbstractOutput getOutput()
          Returns the prediction output generator in use.
 String outputTipText()
          Returns the tip text for this property.
protected  void reset()
          Resets the scheme.
 void setOutput(weka.classifiers.evaluation.output.prediction.AbstractOutput value)
          Sets the prediction output generator to use.
 void wrapUp()
          Cleans up after the execution has finished.
 
Methods inherited from class adams.flow.transformer.AbstractTransformer
backupState, execute, hasPendingOutput, input, output, postExecute, restoreState
 
Methods inherited from class adams.flow.core.AbstractActor
annotationsTipText, canInspectOptions, canPerformSetUpCheck, cleanUp, compareTo, debug, destroy, doExecute, equals, findVariables, findVariables, findVariables, forceVariables, forCommandLine, forName, getAdditionalInformation, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowActors, getFullName, getName, getNextSibling, getParent, getPreviousSibling, getQuickInfo, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, initialize, isBackedUp, isExecuted, isFinished, isHeadless, isStopped, nameTipText, performSetUpChecks, preExecute, pruneBackup, pruneBackup, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setUp, setVariables, shallowCopy, shallowCopy, sizeOf, skipTipText, stopExecution, stopExecution, stopFlowOnErrorTipText, updateDetectedVariables, updatePrefix, updateVariables, variableChanged
 
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.InputConsumer
accepts
 

Field Detail

m_Output

protected weka.classifiers.evaluation.output.prediction.AbstractOutput m_Output
for generating predictions output.


m_OutputBuffer

protected StringBuffer m_OutputBuffer
the buffer for the predictions.

Constructor Detail

AbstractWekaClassifierEvaluator

public AbstractWekaClassifierEvaluator()
Method Detail

defineOptions

public void defineOptions()
Adds options to the internal list of options.

Specified by:
defineOptions in interface OptionHandler
Overrides:
defineOptions in class AbstractActor

setOutput

public void setOutput(weka.classifiers.evaluation.output.prediction.AbstractOutput value)
Sets the prediction output generator to use.

Parameters:
value - the output generator

getOutput

public weka.classifiers.evaluation.output.prediction.AbstractOutput getOutput()
Returns the prediction output generator in use.

Returns:
the output generator

outputTipText

public String outputTipText()
Returns the tip text for this property.

Returns:
tip text for this property suitable for displaying in the GUI or for listing the options.

generates

public Class[] generates()
Returns the class of objects that it generates.

Returns:
String.class or weka.classifiers.Evaluation.class

reset

protected void reset()
Resets the scheme.

Overrides:
reset in class AbstractTransformer

wrapUp

public void wrapUp()
Cleans up after the execution has finished.

Overrides:
wrapUp in class AbstractTransformer


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.