|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmulan.evaluation.measure.InformationRetrievalMeasures
public class InformationRetrievalMeasures
Class for computing various information retrieval measures.
| Constructor Summary | |
|---|---|
InformationRetrievalMeasures()
|
|
| Method Summary | |
|---|---|
static double |
fMeasure(double tp,
double fp,
double fn,
double beta)
Computation of F-measure based on tp, fp, fn and beta. |
static double |
precision(double tp,
double fp,
double fn)
Computation of precision based on tp, fp and fn. |
static double |
recall(double tp,
double fp,
double fn)
Computation of recall based on tp, fp and fn. |
static double |
specificity(double tn,
double fp,
double fn)
Computation of specificity based on tn, fp and fn. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InformationRetrievalMeasures()
| Method Detail |
|---|
public static double fMeasure(double tp,
double fp,
double fn,
double beta)
tp - true positivesfp - false positivesfn - false negativesbeta - controls the relative importance of recall versus precision
public static double precision(double tp,
double fp,
double fn)
tp - true positivesfp - false positivesfn - false negatives
public static double recall(double tp,
double fp,
double fn)
tp - true positivesfp - false positivesfn - false negatives
public static double specificity(double tn,
double fp,
double fn)
tn - true negativesfp - false positivesfn - false negatives
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||