Class IncrementalClassifierEvaluator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, BeanCommon, EventConstraints, IncrementalClassifierListener, Visible

public class IncrementalClassifierEvaluator extends AbstractEvaluator implements IncrementalClassifierListener, EventConstraints
Bean that evaluates incremental classifiers
Version:
$Revision: 10220 $
Author:
Mark Hall
See Also:
  • Constructor Details

    • IncrementalClassifierEvaluator

      public IncrementalClassifierEvaluator()
  • Method Details

    • setCustomName

      public void setCustomName(String name)
      Set a custom (descriptive) name for this bean
      Specified by:
      setCustomName in interface BeanCommon
      Parameters:
      name - the name to use
    • getCustomName

      public String getCustomName()
      Get the custom (descriptive) name for this bean (if one has been set)
      Specified by:
      getCustomName in interface BeanCommon
      Returns:
      the custom name (or the default name)
    • globalInfo

      public String globalInfo()
      Global info for this bean
      Returns:
      a String value
    • acceptClassifier

      public void acceptClassifier(IncrementalClassifierEvent ce)
      Accepts and processes a classifier encapsulated in an incremental classifier event
      Specified by:
      acceptClassifier in interface IncrementalClassifierListener
      Parameters:
      ce - an IncrementalClassifierEvent value
    • eventGeneratable

      public boolean eventGeneratable(String eventName)
      Returns true, if at the current time, the named event could be generated. Assumes that supplied event names are names of events that could be generated by this bean.
      Specified by:
      eventGeneratable in interface EventConstraints
      Parameters:
      eventName - the name of the event in question
      Returns:
      true if the named event could be generated at this point in time
    • stop

      public void stop()
      Stop all action
      Specified by:
      stop in interface BeanCommon
      Specified by:
      stop in class AbstractEvaluator
    • isBusy

      public boolean isBusy()
      Returns true if. at this time, the bean is busy with some (i.e. perhaps a worker thread is performing some calculation).
      Specified by:
      isBusy in interface BeanCommon
      Returns:
      true if the bean is busy.
    • setStatusFrequency

      public void setStatusFrequency(int s)
      Set how often progress is reported to the status bar.
      Parameters:
      s - report progress every s instances
    • getStatusFrequency

      public int getStatusFrequency()
      Get how often progress is reported to the status bar.
      Returns:
      after how many instances, progress is reported to the status bar
    • statusFrequencyTipText

      public String statusFrequencyTipText()
      Return a tip text string for this property
      Returns:
      a string for the tip text
    • setOutputPerClassInfoRetrievalStats

      public void setOutputPerClassInfoRetrievalStats(boolean i)
      Set whether to output per-class information retrieval statistics (nominal class only).
      Parameters:
      i - true if info retrieval stats are to be output
    • getOutputPerClassInfoRetrievalStats

      public boolean getOutputPerClassInfoRetrievalStats()
      Get whether per-class information retrieval stats are to be output.
      Returns:
      true if info retrieval stats are to be output
    • outputPerClassInfoRetrievalStatsTipText

      public String outputPerClassInfoRetrievalStatsTipText()
      Return a tip text string for this property
      Returns:
      a string for the tip text
    • setChartingEvalWindowSize

      public void setChartingEvalWindowSize(int windowSize)
      Set whether to compute evaluation for charting over a fixed sized window of the most recent instances (rather than the whole stream).
      Parameters:
      windowSize - the size of the window to use for computing the evaluation metrics used for charting. Setting a value of zero or less specifies that no windowing is to be used.
    • getChartingEvalWindowSize

      public int getChartingEvalWindowSize()
      Get whether to compute evaluation for charting over a fixed sized window of the most recent instances (rather than the whole stream).
      Returns:
      the size of the window to use for computing the evaluation metrics used for charting. Setting a value of zero or less specifies that no windowing is to be used.
    • chartingEvalWindowSizeTipText

      public String chartingEvalWindowSizeTipText()
      Return a tip text string for this property
      Returns:
      a string for the tip text
    • addChartListener

      public void addChartListener(ChartListener cl)
      Add a chart listener
      Parameters:
      cl - a ChartListener value
    • removeChartListener

      public void removeChartListener(ChartListener cl)
      Remove a chart listener
      Parameters:
      cl - a ChartListener value
    • addTextListener

      public void addTextListener(TextListener cl)
      Add a text listener
      Parameters:
      cl - a TextListener value
    • removeTextListener

      public void removeTextListener(TextListener cl)
      Remove a text listener
      Parameters:
      cl - a TextListener value