|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.debellor.base.evaluator.score.Score org.debellor.base.evaluator.score.Accuracy
public class Accuracy
Calculates accuracy of a decision system (typically a classifier), i.e. the fraction of samples for which predicted decision was exactly the same as the target one.
Constructor Summary | |
---|---|
Accuracy()
|
Method Summary | |
---|---|
void |
add(DataObject target,
DataObject prediction)
Update the score with another pair of (target,prediction) decisions. |
java.lang.String |
report()
Calculates the value(s) of the quality measure and returns in a form of a textual report. |
void |
reset()
Resets the score to its initial state. |
double |
result()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Accuracy()
Method Detail |
---|
public void reset()
Score
reset
in class Score
public void add(DataObject target, DataObject prediction)
Score
add
in class Score
target
- Ground truth decision of a sample.prediction
- Decision predicted by a decision algorithm.public java.lang.String report()
Score
report
in class Score
public double result()
result
in class Score
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |