MOA 12.03
Real Time Analytics for Data Streams
moa.tasks.EvaluateInterleavedTestThenTrain Class Reference

Task for evaluating a classifier on a stream by testing then training with each example in sequence. More...

Inheritance diagram for moa.tasks.EvaluateInterleavedTestThenTrain:
Collaboration diagram for moa.tasks.EvaluateInterleavedTestThenTrain:

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
Class<?> getTaskResultType ()
 Gets the result type of this task.

Public Attributes

ClassOption learnerOption
ClassOption streamOption
ClassOption evaluatorOption
IntOption instanceLimitOption
IntOption timeLimitOption
IntOption sampleFrequencyOption
IntOption memCheckFrequencyOption
FileOption dumpFileOption

Protected Member Functions

Object doMainTask (TaskMonitor monitor, ObjectRepository repository)
 This method performs this task.

Detailed Description

Task for evaluating a classifier on a stream by testing then training with each example in sequence.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 45 of file EvaluateInterleavedTestThenTrain.java.


Member Function Documentation

Object moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected, virtual]

This method performs this task.

AbstractTask implements doTask, that uses doTaskImpl. MainTask implements doTaskImpl using doMainTask so its extensions only need to implement doMainTask.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use
Returns:
an object with the result of this task

Implements moa.tasks.MainTask.

Definition at line 93 of file EvaluateInterleavedTestThenTrain.java.

Here is the call graph for this function:

String moa.tasks.EvaluateInterleavedTestThenTrain.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 48 of file EvaluateInterleavedTestThenTrain.java.

Class<?> moa.tasks.EvaluateInterleavedTestThenTrain.getTaskResultType ( )

Gets the result type of this task.

Tasks can return LearningCurve, LearningEvaluation, Classifier, String, Instances..

Returns:
a class object of the result of this task

Implements moa.tasks.Task.

Definition at line 88 of file EvaluateInterleavedTestThenTrain.java.


Member Data Documentation

Initial value:
 new FileOption("dumpFile", 'd',
            "File to append intermediate csv reslts to.", null, "csv", true)

Definition at line 84 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().

Initial value:
 new ClassOption("evaluator", 'e',
            "Classification performance evaluation method.",
            ClassificationPerformanceEvaluator.class,
            "BasicClassificationPerformanceEvaluator")

Definition at line 61 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().

Initial value:
 new IntOption("instanceLimit", 'i',
            "Maximum number of instances to test/train on  (-1 = no limit).",
            100000000, -1, Integer.MAX_VALUE)

Definition at line 66 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().

Initial value:
 new ClassOption("learner", 'l',
            "Classifier to train.", Classifier.class, "bayes.NaiveBayes")

Definition at line 54 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().

Initial value:
 new IntOption(
            "memCheckFrequency", 'q',
            "How many instances between memory bound checks.", 100000, 0,
            Integer.MAX_VALUE)

Definition at line 79 of file EvaluateInterleavedTestThenTrain.java.

Initial value:
 new IntOption("sampleFrequency",
            'f',
            "How many instances between samples of the learning performance.",
            100000, 0, Integer.MAX_VALUE)

Definition at line 74 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().

Initial value:
 new ClassOption("stream", 's',
            "Stream to learn from.", InstanceStream.class,
            "generators.RandomTreeGenerator")

Definition at line 57 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().

Initial value:
 new IntOption("timeLimit", 't',
            "Maximum number of seconds to test/train for (-1 = no limit).", -1,
            -1, Integer.MAX_VALUE)

Definition at line 70 of file EvaluateInterleavedTestThenTrain.java.

Referenced by moa.tasks.EvaluateInterleavedTestThenTrain.doMainTask().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations