Class PassThrough

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.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$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • PassThrough

        public PassThrough()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.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)