|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.classify.MassVerifier
Tracks the statistics for a set of test documents.
Constructor Summary | |
MassVerifier()
Constructor |
Method Summary | |
double |
getAccuracy()
Returns the accuracy from the statistics so far. |
int |
getNumRight(int i)
Returns the number of correct classifications for category i. |
int |
getNumWrong(int i)
Returns the number of incorrect classifications for category i. |
double |
getRecall(int i)
Returns the recall for category i. |
void |
printStats()
Prints some statistics for each category. |
void |
update(boolean result,
int real_id,
int class_id)
Updates the statistics with a new instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MassVerifier()
Method Detail |
public void update(boolean result, int real_id, int class_id)
public double getAccuracy()
public double getRecall(int i)
public int getNumRight(int i)
public int getNumWrong(int i)
public void printStats()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |