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

Task for evaluating a classifier on a stream by periodically testing on a heldout set. More...

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

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 testSizeOption
IntOption trainSizeOption
IntOption trainTimeOption
IntOption sampleFrequencyOption
FileOption dumpFileOption
FlagOption cacheTestOption

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 periodically testing on a heldout set.

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

Definition at line 52 of file EvaluatePeriodicHeldOutTest.java.


Member Function Documentation

Object moa.tasks.EvaluatePeriodicHeldOutTest.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 96 of file EvaluatePeriodicHeldOutTest.java.

Here is the call graph for this function:

String moa.tasks.EvaluatePeriodicHeldOutTest.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 EvaluatePeriodicHeldOutTest.java.

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


Member Data Documentation

Initial value:
 new FlagOption("cacheTest", 'c',
            "Cache test instances in memory.")

Definition at line 92 of file EvaluatePeriodicHeldOutTest.java.

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

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

Definition at line 89 of file EvaluatePeriodicHeldOutTest.java.

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

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

Definition at line 68 of file EvaluatePeriodicHeldOutTest.java.

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

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

Definition at line 61 of file EvaluatePeriodicHeldOutTest.java.

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

Initial value:
 new IntOption(
            "sampleFrequency",
            'f',
            "Number of training examples between samples of learning performance.",
            100000, 0, Integer.MAX_VALUE)

Definition at line 83 of file EvaluatePeriodicHeldOutTest.java.

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

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

Definition at line 64 of file EvaluatePeriodicHeldOutTest.java.

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

Initial value:
 new IntOption("testSize", 'n',
            "Number of testing examples.", 1000000, 0, Integer.MAX_VALUE)

Definition at line 73 of file EvaluatePeriodicHeldOutTest.java.

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

Initial value:
 new IntOption("trainSize", 'i',
            "Number of training examples, <1 = unlimited.", 0, 0,
            Integer.MAX_VALUE)

Definition at line 76 of file EvaluatePeriodicHeldOutTest.java.

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

Initial value:
 new IntOption("trainTime", 't',
            "Number of training seconds.", 10 * 60 * 60, 0, Integer.MAX_VALUE)

Definition at line 80 of file EvaluatePeriodicHeldOutTest.java.

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


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