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

Task for evaluating a static model on a stream. More...

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

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
 EvaluateModel ()
 EvaluateModel (Classifier model, InstanceStream stream, ClassificationPerformanceEvaluator evaluator, int maxInstances)
Class<?> getTaskResultType ()
 Gets the result type of this task.
Object doMainTask (TaskMonitor monitor, ObjectRepository repository)
 This method performs this task.

Public Attributes

ClassOption modelOption
ClassOption streamOption
ClassOption evaluatorOption
IntOption maxInstancesOption
FileOption outputPredictionFileOption

Detailed Description

Task for evaluating a static model on a stream.

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

Definition at line 42 of file EvaluateModel.java.


Constructor & Destructor Documentation

moa.tasks.EvaluateModel.EvaluateModel ( )

Definition at line 70 of file EvaluateModel.java.

moa.tasks.EvaluateModel.EvaluateModel ( Classifier  model,
InstanceStream  stream,
ClassificationPerformanceEvaluator  evaluator,
int  maxInstances 
)

Definition at line 73 of file EvaluateModel.java.

Here is the call graph for this function:


Member Function Documentation

Object moa.tasks.EvaluateModel.doMainTask ( TaskMonitor  monitor,
ObjectRepository  repository 
) [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 87 of file EvaluateModel.java.

Here is the call graph for this function:

String moa.tasks.EvaluateModel.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 45 of file EvaluateModel.java.

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


Member Data Documentation

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

Definition at line 58 of file EvaluateModel.java.

Referenced by moa.tasks.EvaluateModel.doMainTask(), and moa.tasks.EvaluateModel.EvaluateModel().

Initial value:
 new IntOption("maxInstances", 'i',
            "Maximum number of instances to test.", 1000000, 0,
            Integer.MAX_VALUE)

Definition at line 63 of file EvaluateModel.java.

Referenced by moa.tasks.EvaluateModel.doMainTask(), and moa.tasks.EvaluateModel.EvaluateModel().

Initial value:
 new ClassOption("model", 'm',
            "Classifier to evaluate.", Classifier.class, "LearnModel")

Definition at line 51 of file EvaluateModel.java.

Referenced by moa.tasks.EvaluateModel.doMainTask(), and moa.tasks.EvaluateModel.EvaluateModel().

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

Definition at line 67 of file EvaluateModel.java.

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

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

Definition at line 54 of file EvaluateModel.java.

Referenced by moa.tasks.EvaluateModel.doMainTask(), and moa.tasks.EvaluateModel.EvaluateModel().


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