public abstract class APRF extends Object implements IQualitativeMeasure
| Constructor and Description |
|---|
APRF() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
calculate(AMapping predictions,
GoldStandard goldStandard)
The Abstract method to be implemented for calculating the accuracy of the machine learning predictions compared to a gold standard
|
static double |
falseNegative(AMapping predictions,
AMapping goldStandard)
The method calculates the false-negative results such that the result is claimed by a machine learning as a negative one and the claim is false.
|
static double |
trueFalsePositive(AMapping predictions,
AMapping goldStandard,
boolean truePositive)
The method calculates either the true positive or the false positive results which are defined as true-positive: the results
classified as positive and the classification is correct while false-positive: the results classified as positive and the classification is incorrect.
|
static double |
trueNegative(AMapping predictions,
GoldStandard goldStandard) |
public static double trueFalsePositive(AMapping predictions, AMapping goldStandard, boolean truePositive)
predictions - The predictions provided by a machine learning algorithmgoldStandard - It contains the gold standard (reference mapping) combined with the source and target URIstruePositive - A flag switches the calculation between true positive (=true) and false positive(=false)public static double falseNegative(AMapping predictions, AMapping goldStandard)
predictions - The predictions provided by a machine learning algorithmgoldStandard - It contains the gold standard (reference mapping) combined with the source and target URIspublic static double trueNegative(AMapping predictions, GoldStandard goldStandard)
public abstract double calculate(AMapping predictions, GoldStandard goldStandard)
calculate in interface IQualitativeMeasurepredictions - The predictions provided by a machine learning algorithmgoldStandard - It contains the gold standard (reference mapping) combined with the source and target URIsCopyright © 2018. All rights reserved.