Class WekaTrainTestSetEvaluator

  • All Implemented Interfaces:
    AdditionalInformationHandler, CleanUpHandler, Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<Actor>, SizeOfHandler, Stoppable, StoppableWithFeedback, VariablesInspectionHandler, VariableChangeListener, Actor, ErrorHandler, InputConsumer, OutputProducer, JobRunnerSupporter, Serializable, Comparable

    public class WekaTrainTestSetEvaluator
    extends AbstractCallableWekaClassifierEvaluator
    implements JobRunnerSupporter
    Trains a classifier on an incoming training dataset (from a container) and then evaluates it on the test set (also from a container).
    The classifier setup being used in the evaluation is a callable 'Classifier' actor.

    Input/output:
    - accepts:
       adams.flow.container.WekaTrainTestSetContainer
    - generates:
       adams.flow.container.WekaEvaluationContainer


    Container information:
    - adams.flow.container.WekaTrainTestSetContainer: Train, Test, Seed, FoldNumber, FoldCount, Train original indices, Test original indices
    - adams.flow.container.WekaEvaluationContainer: Evaluation, Model, Prediction output, Original indices, Test data

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
        min-user-mode: Expert
     
    -name <java.lang.String> (property: name)
        The name of the actor.
        default: WekaTrainTestSetEvaluator
     
    -annotation <adams.core.base.BaseAnnotation> (property: annotations)
        The annotations to attach to this actor.
        default:
     
    -skip <boolean> (property: skip)
        If set to true, transformation is skipped and the input token is just forwarded
        as it is.
        default: false
     
    -stop-flow-on-error <boolean> (property: stopFlowOnError)
        If set to true, the flow execution at this level gets stopped in case this
        actor encounters an error; the error gets propagated; useful for critical
        actors.
        default: false
        min-user-mode: Expert
     
    -silent <boolean> (property: silent)
        If enabled, then no errors are output in the console; Note: the enclosing
        actor handler must have this enabled as well.
        default: false
        min-user-mode: Expert
     
    -output <weka.classifiers.evaluation.output.prediction.AbstractOutput> (property: output)
        The class for generating prediction output; if 'Null' is used, then an Evaluation
        object is forwarded instead of a String.
        default: weka.classifiers.evaluation.output.prediction.Null
     
    -always-use-container <boolean> (property: alwaysUseContainer)
        If enabled, always outputs an evaluation container.
        default: false
     
    -classifier <adams.flow.core.CallableActorReference> (property: classifier)
        The callable classifier actor to train and evaluate on the test data.
        default: WekaClassifierSetup
     
    -no-predictions <boolean> (property: discardPredictions)
        If enabled, the collection of predictions during evaluation is suppressed,
         wich will conserve memory.
        default: false
     
    -prefer-jobrunner <boolean> (property: preferJobRunner)
        If enabled, tries to offload the processing onto a adams.flow.standalone.JobRunnerInstance.
        default: false
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form