public class PseudoFMeasure extends APseudoPRF
symmetricPrecision| Constructor and Description |
|---|
PseudoFMeasure() |
PseudoFMeasure(boolean symmetricPrecision)
Use this constructor to toggle between symmetric precision (true) and the older asymmetric
Pseudo-Precision (false)
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculate(AMapping predictions,
GoldStandard goldStandard)
The method calculates the pseudo F-Measure of the machine learning predictions compared to a gold standard for beta = 1 .
|
double |
getPseudoFMeasure(AMapping predictions,
GoldStandard goldStandard,
double beta)
The method calculates the pseudo F-Measure of the machine learning predictions compared to a gold standard for different beta values
|
double |
precision(AMapping predictions,
GoldStandard goldStandard)
The method calculates the pseudo precision of the machine learning predictions compared to a gold standard
|
double |
recall(AMapping predictions,
GoldStandard goldStandard)
The method calculates the pseudo recall of the machine learning predictions compared to a gold standard
|
getUse1To1Mapping, isSymmetricPrecision, isUse1To1Mapping, setSymmetricPrecision, setUse1To1MappingfalseNegative, trueFalsePositive, trueNegativepublic PseudoFMeasure()
public PseudoFMeasure(boolean symmetricPrecision)
symmetricPrecision - sets/resets the symmetric precision flagpublic double calculate(AMapping predictions, GoldStandard goldStandard)
calculate in interface IQualitativeMeasurecalculate in class APseudoPRFpredictions - The predictions provided by a machine learning algorithm.goldStandard - It contains the gold standard (reference mapping) combined with the source and target URIs.public double getPseudoFMeasure(AMapping predictions, GoldStandard goldStandard, double beta)
predictions - The predictions provided by a machine learning algorithmgoldStandard - It contains the gold standard (reference mapping) combined with the source and target URIsbeta - Beta for F-betapublic double recall(AMapping predictions, GoldStandard goldStandard)
predictions - The predictions provided by a machine learning algorithmgoldStandard - It contains the gold standard (reference mapping) combined with the source and target URIspublic double precision(AMapping predictions, GoldStandard goldStandard)
predictions - 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.