adams.data.weka.evaluator
Class PassThrough

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.data.weka.evaluator.AbstractInstanceEvaluator
              extended by adams.data.weka.evaluator.PassThrough
All Implemented Interfaces:
CleanUpHandler, Debuggable, Destroyable, OptionHandler, SizeOfHandler, Serializable

public class PassThrough
extends AbstractInstanceEvaluator

A dummy evaluator that OKs all data.

Valid options are:

-D (property: debug)
    If set to true, scheme may output additional info to the console.
 

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

Field Summary
 
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
PassThrough()
           
 
Method Summary
protected  double doEvaluate(weka.core.Instance inst)
          Performs no real evaluation, just returns 1.0.
 String globalInfo()
          Returns a string describing the object.
 
Methods inherited from class adams.data.weka.evaluator.AbstractInstanceEvaluator
check, cleanUp, compareTo, destroy, equals, evaluate, forCommandLine, forName, getEvaluators, reset, setUp, shallowCopy, shallowCopy
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, finishInit, getDebugLevel, getOptionManager, 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
 

Constructor Detail

PassThrough

public PassThrough()
Method Detail

globalInfo

public String globalInfo()
Returns a string describing the object.

Specified by:
globalInfo in class AbstractOptionHandler
Returns:
a description suitable for displaying in the gui

doEvaluate

protected double doEvaluate(weka.core.Instance inst)
Performs no real evaluation, just returns 1.0.

Specified by:
doEvaluate in class AbstractInstanceEvaluator
Parameters:
inst - the instance to evaluate
Returns:
evaluation range, between 0 and 1 (0 = bad, 1 = good, -1 = if unable to evaluate)


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