Class PseudoFMeasure
- java.lang.Object
-
- org.aksw.limes.core.evaluation.qualititativeMeasures.APRF
-
- org.aksw.limes.core.evaluation.qualititativeMeasures.APseudoPRF
-
- org.aksw.limes.core.evaluation.qualititativeMeasures.PseudoFMeasure
-
- All Implemented Interfaces:
IQualitativeMeasure
- Direct Known Subclasses:
PseudoRefFMeasure
public class PseudoFMeasure extends APseudoPRF
Implements a quality measure for unsupervised ML algorihtms, dubbed pseudo F-Measure.
Thereby, not relying on any gold standard. The basic idea is to measure the quality of the given Mapping by calculating how close it is to an assumed 1-to-1 Mapping between source and target.- Version:
- 1.0
- Author:
- Klaus Lyko (lyko@informatik.uni-leipzig.de), Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Mofeed Hassan (mounir@informatik.uni-leipzig.de)
-
-
Field Summary
-
Fields inherited from class org.aksw.limes.core.evaluation.qualititativeMeasures.APseudoPRF
symmetricPrecision
-
-
Constructor Summary
Constructors Constructor Description PseudoFMeasure()PseudoFMeasure(boolean symmetricPrecision)Use this constructor to toggle between symmetric precision (true) and the older asymmetric Pseudo-Precision (false)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalculate(AMapping predictions, GoldStandard goldStandard)The method calculates the pseudo F-Measure of the machine learning predictions compared to a gold standard for beta = 1 .doublecalculate(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 valuesdoubleprecision(AMapping predictions, GoldStandard goldStandard)The method calculates the pseudo precision of the machine learning predictions compared to a gold standarddoublerecall(AMapping predictions, GoldStandard goldStandard)The method calculates the pseudo recall of the machine learning predictions compared to a gold standard-
Methods inherited from class org.aksw.limes.core.evaluation.qualititativeMeasures.APseudoPRF
getUse1To1Mapping, isSymmetricPrecision, isUse1To1Mapping, setSymmetricPrecision, setUse1To1Mapping
-
Methods inherited from class org.aksw.limes.core.evaluation.qualititativeMeasures.APRF
falseNegative, trueFalsePositive, trueNegative
-
-
-
-
Constructor Detail
-
PseudoFMeasure
public PseudoFMeasure()
-
PseudoFMeasure
public PseudoFMeasure(boolean symmetricPrecision)
Use this constructor to toggle between symmetric precision (true) and the older asymmetric Pseudo-Precision (false)- Parameters:
symmetricPrecision- sets/resets the symmetric precision flag
-
-
Method Detail
-
calculate
public 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 .- Specified by:
calculatein interfaceIQualitativeMeasure- Specified by:
calculatein classAPseudoPRF- Parameters:
predictions- The predictions provided by a machine learning algorithm.goldStandard- It contains the gold standard (reference mapping) combined with the source and target URIs.- Returns:
- double - This returns the calculated pseudo F-Measure.
-
calculate
public double calculate(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- Parameters:
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-beta- Returns:
- double - This returns the calculated pseudo F-Measure
-
recall
public double recall(AMapping predictions, GoldStandard goldStandard)
The method calculates the pseudo recall of the machine learning predictions compared to a gold standard- Parameters:
predictions- The predictions provided by a machine learning algorithmgoldStandard- It contains the gold standard (reference mapping) combined with the source and target URIs- Returns:
- double - This returns the calculated pseudo recall
-
precision
public double precision(AMapping predictions, GoldStandard goldStandard)
The method calculates the pseudo precision of the machine learning predictions compared to a gold standard- Parameters:
predictions- The predictions provided by a machine learning algorithmgoldStandard- It contains the gold standard (reference mapping) combined with the source and target URIs- Returns:
- double - This returns the calculated pseudo precision
-
-