MOA 12.03
Real Time Analytics for Data Streams
|
Task for evaluating a classifier on a stream by testing then training with each example in sequence. More...
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. |
Task for evaluating a classifier on a stream by testing then training with each example in sequence.
Definition at line 52 of file EvaluatePrequential.java.
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
.
monitor | the TaskMonitor to use |
repository | the ObjectRepository to use |
Implements moa.tasks.MainTask.
Definition at line 111 of file EvaluatePrequential.java.
String moa.tasks.EvaluatePrequential.getPurposeString | ( | ) |
Gets 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..
Implements moa.tasks.Task.
Definition at line 106 of file EvaluatePrequential.java.
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().
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().
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().
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().
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().
new IntOption( "memCheckFrequency", 'q', "How many instances between memory bound checks.", 100000, 0, Integer.MAX_VALUE)
Definition at line 86 of file EvaluatePrequential.java.
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().
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().
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().
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().
new IntOption("width", 'w', "Size of Window", 1000)
Definition at line 98 of file EvaluatePrequential.java.
Referenced by moa.tasks.EvaluatePrequential.doMainTask().