public class RNTNEval extends Object
Constructor and Description |
---|
RNTNEval() |
Modifier and Type | Method and Description |
---|---|
void |
eval(RNTN rntn,
List<Tree> trees)
Eval the RNTN
|
double |
f1()
TP: true positive
FP: False Positive
FN: False Negative
F1 score: 2 * TP / (2TP + FP + FN)
|
double |
f1(int i)
Calculate f1 score for a given class
|
void |
incrementFalseNegatives(int clazz,
int i) |
void |
incrementFalsePositives(int clazz,
int i) |
void |
incrementTruePositives(int clazz,
int i) |
double |
precision()
Total precision based on guesses so far
|
double |
precision(int i)
Returns the precision for a given label
|
double |
recall()
Returns the recall for the outcomes
|
double |
recall(int i) |
String |
stats()
Print the summary of the rntnresults
|
public void incrementTruePositives(int clazz, int i)
public void incrementFalsePositives(int clazz, int i)
public void incrementFalseNegatives(int clazz, int i)
public String stats()
public double precision()
public double precision(int i)
i
- the labelpublic double recall()
public double recall(int i)
public double f1()
public double f1(int i)
i
- the label to calculate f1 forCopyright © 2015. All Rights Reserved.