public class Statistic extends Object
| Constructor and Description |
|---|
Statistic() |
| Modifier and Type | Method and Description |
|---|---|
static double |
fScore(double precision,
double recall,
double beta)
Calculates the f score of a precision-recall-pair where the parameter beta controls
the weighing of precision against recall (use 1.0 for the original f or f1-score with equal weights).
|
public static double fScore(double precision,
double recall,
double beta)
precision - the fraction of retrieved instances that are relevantrecall - the fraction of relevant instances that are retrievedbeta - A value of 1.0 means equal weights. Higher weights of precision are achieved by using a smaller value of beta,
this is for example useful for semantic web owl:sameAs links.
Higher weights of recall are achieved by bigger values of beta.Copyright © 2013. All Rights Reserved.