MOA 12.03
Real Time Analytics for Data Streams
moa.evaluation.WindowRegressionPerformanceEvaluator Class Reference

Regression evaluator that updates evaluation results using a sliding window. More...

Inheritance diagram for moa.evaluation.WindowRegressionPerformanceEvaluator:
Collaboration diagram for moa.evaluation.WindowRegressionPerformanceEvaluator:

List of all members.

Classes

class  Estimator

Public Member Functions

void reset ()
 Resets this evaluator.
void reset (int numClasses)
void addResult (Instance inst, double[] prediction)
 Adds a learning result to this evaluator.
Measurement[] getPerformanceMeasurements ()
 Gets the current measurements monitored by this evaluator.
double getTotalWeightObserved ()
double getMeanError ()
double getSquareError ()
void getDescription (StringBuilder sb, int indent)
 Returns a string representation of this object.
void prepareForUseImpl (TaskMonitor monitor, ObjectRepository repository)
 This method describes the implementation of how to prepare this object for use.

Public Attributes

IntOption widthOption

Protected Attributes

double TotalweightObserved = 0
Estimator weightObserved
Estimator squareError
Estimator averageError
int numClasses

Detailed Description

Regression evaluator that updates evaluation results using a sliding window.

Author:
Albert Bifet (abifet at cs dot waikato dot ac dot nz)
Version:
Revision:
7

Definition at line 35 of file WindowRegressionPerformanceEvaluator.java.


Member Function Documentation

void moa.evaluation.WindowRegressionPerformanceEvaluator.addResult ( Instance  inst,
double[]  classVotes 
)

Adds a learning result to this evaluator.

Parameters:
instthe instance to be classified
classVotesan array containing the estimated membership probabilities of the test instance in each class
Returns:
an array of measurements monitored in this evaluator

Implements moa.evaluation.ClassificationPerformanceEvaluator.

Definition at line 104 of file WindowRegressionPerformanceEvaluator.java.

Here is the call graph for this function:

void moa.evaluation.WindowRegressionPerformanceEvaluator.getDescription ( StringBuilder  sb,
int  indent 
)

Returns a string representation of this object.

Used in AbstractMOAObject.toString to give a string representation of the object.

Parameters:
sbthe stringbuilder to add the description
indentthe number of characters to indent

Implements moa.MOAObject.

Definition at line 147 of file WindowRegressionPerformanceEvaluator.java.

Here is the call graph for this function:

double moa.evaluation.WindowRegressionPerformanceEvaluator.getMeanError ( )

Definition at line 136 of file WindowRegressionPerformanceEvaluator.java.

Referenced by moa.evaluation.WindowRegressionPerformanceEvaluator.getPerformanceMeasurements().

Here is the call graph for this function:

Here is the caller graph for this function:

Measurement [] moa.evaluation.WindowRegressionPerformanceEvaluator.getPerformanceMeasurements ( )

Gets the current measurements monitored by this evaluator.

Returns:
an array of measurements monitored by this evaluator

Implements moa.evaluation.ClassificationPerformanceEvaluator.

Definition at line 122 of file WindowRegressionPerformanceEvaluator.java.

Referenced by moa.evaluation.WindowRegressionPerformanceEvaluator.getDescription().

Here is the call graph for this function:

Here is the caller graph for this function:

double moa.evaluation.WindowRegressionPerformanceEvaluator.getSquareError ( )

Definition at line 141 of file WindowRegressionPerformanceEvaluator.java.

Referenced by moa.evaluation.WindowRegressionPerformanceEvaluator.getPerformanceMeasurements().

Here is the call graph for this function:

Here is the caller graph for this function:

double moa.evaluation.WindowRegressionPerformanceEvaluator.getTotalWeightObserved ( )

Definition at line 132 of file WindowRegressionPerformanceEvaluator.java.

Referenced by moa.evaluation.WindowRegressionPerformanceEvaluator.getPerformanceMeasurements().

Here is the call graph for this function:

Here is the caller graph for this function:

void moa.evaluation.WindowRegressionPerformanceEvaluator.prepareForUseImpl ( TaskMonitor  monitor,
ObjectRepository  repository 
) [virtual]

This method describes the implementation of how to prepare this object for use.

All classes that extends this class have to implement prepareForUseImpl and not prepareForUse since prepareForUse calls prepareForUseImpl.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use

Implements moa.options.AbstractOptionHandler.

Definition at line 153 of file WindowRegressionPerformanceEvaluator.java.

void moa.evaluation.WindowRegressionPerformanceEvaluator.reset ( )

Resets this evaluator.

It must be similar to starting a new evaluator from scratch.

Implements moa.evaluation.ClassificationPerformanceEvaluator.

Definition at line 91 of file WindowRegressionPerformanceEvaluator.java.

Referenced by moa.evaluation.WindowRegressionPerformanceEvaluator.addResult().

Here is the caller graph for this function:

void moa.evaluation.WindowRegressionPerformanceEvaluator.reset ( int  numClasses)

Definition at line 95 of file WindowRegressionPerformanceEvaluator.java.

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 40 of file WindowRegressionPerformanceEvaluator.java.

Referenced by moa.evaluation.WindowRegressionPerformanceEvaluator.reset().


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