public class Metrics
extends java.lang.Object
Constructor and Description |
---|
Metrics(int TP,
int FP,
int TN,
int FN,
int noInstances) |
Modifier and Type | Method and Description |
---|---|
void |
add(int TP,
int FP,
int TN,
int FN,
int noInstances) |
double |
getF1Score() |
int |
getFN() |
int |
getFP() |
int |
getNoInstances() |
int |
getTN() |
int |
getTP() |
double |
precision() |
double |
precisionTP() |
double |
trueNegativeRate() |
double |
truePositiveRate() |
public void add(int TP, int FP, int TN, int FN, int noInstances)
public double truePositiveRate()
public double trueNegativeRate()
public double getF1Score()
public double precision()
public double precisionTP()
public int getTP()
public int getFP()
public int getTN()
public int getFN()
public int getNoInstances()