public class IRMetrics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.ThreadLocal<java.text.MessageFormat> |
doubleFormat |
(package private) int |
fn |
(package private) int |
fp |
(package private) int |
tn |
(package private) int |
tp |
Constructor and Description |
---|
IRMetrics() |
IRMetrics(int tp,
int fp,
int tn,
int fn) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatDouble(double d) |
double |
getF1() |
int |
getFn() |
int |
getFp() |
double |
getPrecision() |
double |
getRecall() |
int |
getTn() |
int |
getTp() |
void |
setFn(int fn) |
void |
setFp(int fp) |
void |
setTn(int tn) |
void |
setTp(int tp) |
java.lang.String |
toString()
return tab delimited ir metrics:
tp fp tn fn precision recall f1 |
private static java.lang.ThreadLocal<java.text.MessageFormat> doubleFormat
int tp
int fp
int tn
int fn
public IRMetrics()
public IRMetrics(int tp, int fp, int tn, int fn)
public static java.lang.String formatDouble(double d)
public int getTp()
public void setTp(int tp)
public int getFp()
public void setFp(int fp)
public int getTn()
public void setTn(int tn)
public int getFn()
public void setFn(int fn)
public double getPrecision()
public double getRecall()
public double getF1()
public java.lang.String toString()
toString
in class java.lang.Object