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

Classification evaluator that performs basic incremental evaluation. More...

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

List of all members.

Public Member Functions

void reset ()
 Resets this evaluator.
void reset (int numClasses)
void addResult (Instance inst, double[] classVotes)
 Adds a learning result to this evaluator.
Measurement[] getPerformanceMeasurements ()
 Gets the current measurements monitored by this evaluator.
double getTotalWeightObserved ()
double getFractionCorrectlyClassified ()
double getFractionIncorrectlyClassified ()
double getKappaStatistic ()
void getDescription (StringBuilder sb, int indent)
 Returns a string representation of this object.

Protected Attributes

double weightObserved
double weightCorrect
double[] columnKappa
double[] rowKappa
int numClasses

Detailed Description

Classification evaluator that performs basic incremental evaluation.

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 35 of file BasicClassificationPerformanceEvaluator.java.


Member Function Documentation

void moa.evaluation.BasicClassificationPerformanceEvaluator.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 68 of file BasicClassificationPerformanceEvaluator.java.

Here is the call graph for this function:

void moa.evaluation.BasicClassificationPerformanceEvaluator.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 125 of file BasicClassificationPerformanceEvaluator.java.

Here is the call graph for this function:

double moa.evaluation.BasicClassificationPerformanceEvaluator.getFractionCorrectlyClassified ( )
double moa.evaluation.BasicClassificationPerformanceEvaluator.getFractionIncorrectlyClassified ( )

Definition at line 106 of file BasicClassificationPerformanceEvaluator.java.

Here is the call graph for this function:

double moa.evaluation.BasicClassificationPerformanceEvaluator.getKappaStatistic ( )

Definition at line 110 of file BasicClassificationPerformanceEvaluator.java.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Measurement [] moa.evaluation.BasicClassificationPerformanceEvaluator.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 86 of file BasicClassificationPerformanceEvaluator.java.

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

Here is the call graph for this function:

Here is the caller graph for this function:

double moa.evaluation.BasicClassificationPerformanceEvaluator.getTotalWeightObserved ( )

Definition at line 97 of file BasicClassificationPerformanceEvaluator.java.

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

Here is the caller graph for this function:

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

Definition at line 55 of file BasicClassificationPerformanceEvaluator.java.

void moa.evaluation.BasicClassificationPerformanceEvaluator.reset ( )

Resets this evaluator.

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

Implements moa.evaluation.ClassificationPerformanceEvaluator.

Definition at line 51 of file BasicClassificationPerformanceEvaluator.java.

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

Here is the caller graph for this function:


Member Data Documentation


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