org.debellor.base.evaluator.score
Class Score

java.lang.Object
  extended by org.debellor.base.evaluator.score.Score
Direct Known Subclasses:
Accuracy, RMSE

public abstract class Score
extends java.lang.Object

Base class for classes which calculate value of a quality measure (accuracy, confusion matrix, RMSE, ...) of decision systems.

Author:
Marcin Wojnarski
See Also:
EvaluatorCell

Constructor Summary
Score()
           
 
Method Summary
abstract  void add(DataObject target, DataObject prediction)
          Update the score with another pair of (target,prediction) decisions.
abstract  java.lang.String report()
          Calculates the value(s) of the quality measure and returns in a form of a textual report.
abstract  void reset()
          Resets the score to its initial state.
abstract  double result()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Score

public Score()
Method Detail

add

public abstract void add(DataObject target,
                         DataObject prediction)
                  throws DataException
Update the score with another pair of (target,prediction) decisions.

Parameters:
target - Ground truth decision of a sample.
prediction - Decision predicted by a decision algorithm.
Throws:
DataException

report

public abstract java.lang.String report()
Calculates the value(s) of the quality measure and returns in a form of a textual report.


result

public abstract double result()

reset

public abstract void reset()
Resets the score to its initial state.