public class IRMetrics extends Object
Constructor and Description |
---|
IRMetrics() |
IRMetrics(int tp,
int fp,
int tn,
int fn) |
Modifier and Type | Method and Description |
---|---|
static 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) |
String |
toString()
return tab delimited ir metrics:
tp fp tn fn precision recall f1 |
public IRMetrics()
public IRMetrics(int tp, int fp, int tn, int fn)
public static 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()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.