Class 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)
    • 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:
        calculate in interface IQualitativeMeasure
        Specified by:
        calculate in class APseudoPRF
        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 algorithm
        goldStandard - It contains the gold standard (reference mapping) combined with the source and target URIs
        beta - 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 algorithm
        goldStandard - 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 algorithm
        goldStandard - It contains the gold standard (reference mapping) combined with the source and target URIs
        Returns:
        double - This returns the calculated pseudo precision