Class FMeasure

  • All Implemented Interfaces:
    IQualitativeMeasure

    public class FMeasure
    extends APRF
    implements IQualitativeMeasure
    F-Measure is the weighted average of the precision and recall
    Since:
    1.0
    Version:
    1.0
    Author:
    Tommaso Soru (tsoru@informatik.uni-leipzig.de)
    • Constructor Detail

      • FMeasure

        public FMeasure()
    • Method Detail

      • calculate

        public double calculate​(AMapping predictions,
                                GoldStandard goldStandard)
        The method calculates the F-Measure of the machine learning predictions compared to a gold standard
        Specified by:
        calculate in interface IQualitativeMeasure
        Specified by:
        calculate in class APRF
        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 F-Measure
      • calculate

        public double calculate​(AMapping predictions,
                                GoldStandard goldStandard,
                                double beta)
        The method calculates the F-Measure of the machine learning predictions compared to a gold standard
        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 F-Measure
      • recall

        public double recall​(AMapping predictions,
                             GoldStandard goldStandard)
        The method calculates the recall of the machine learning predictions compared to a gold standard
        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 recall
      • precision

        public double precision​(AMapping predictions,
                                GoldStandard goldStandard)
        The method calculates the precision of the machine learning predictions compared to a gold standard
        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 precision