MOA 12.03
Real Time Analytics for Data Streams
moa.tasks.EvaluatePrequential 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.EvaluatePrequential:
Collaboration diagram for moa.tasks.EvaluatePrequential:

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
FileOption outputPredictionFileOption
IntOption widthOption
FloatOption alphaOption

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)
Albert Bifet (abifet at cs dot waikato dot ac dot nz)
Version:
Revision:
7

Definition at line 52 of file EvaluatePrequential.java.


Member Function Documentation

Object moa.tasks.EvaluatePrequential.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 111 of file EvaluatePrequential.java.

Here is the call graph for this function:

String moa.tasks.EvaluatePrequential.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 55 of file EvaluatePrequential.java.

Class<?> moa.tasks.EvaluatePrequential.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 106 of file EvaluatePrequential.java.


Member Data Documentation

Initial value:
 new FloatOption("alpha",
            'a', "Fading factor or exponential smoothing factor", .01)

Definition at line 101 of file EvaluatePrequential.java.

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

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

Definition at line 91 of file EvaluatePrequential.java.

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

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

Definition at line 68 of file EvaluatePrequential.java.

Referenced by moa.tasks.EvaluatePrequential.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 73 of file EvaluatePrequential.java.

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

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

Definition at line 61 of file EvaluatePrequential.java.

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

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

Definition at line 86 of file EvaluatePrequential.java.

Initial value:
 new FileOption("outputPredictionFile", 'o',
            "File to append output predictions to.", null, "pred", true)

Definition at line 94 of file EvaluatePrequential.java.

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

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

Definition at line 81 of file EvaluatePrequential.java.

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

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

Definition at line 64 of file EvaluatePrequential.java.

Referenced by moa.tasks.EvaluatePrequential.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 77 of file EvaluatePrequential.java.

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

Initial value:
 new IntOption("width",
            'w', "Size of Window", 1000)

Definition at line 98 of file EvaluatePrequential.java.

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


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