Class PseudoRecall

  • All Implemented Interfaces:
    IQualitativeMeasure
    Direct Known Subclasses:
    PseudoRefRecall

    public class PseudoRecall
    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 a given Mapping by calc. how close it is to an assumed 1-to-1 Mapping between source and target.
    Since:
    1.0
    Version:
    1.0
    Author:
    Klaus Lyko (lyko@informatik.uni-leipzig.de), Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), mofeed hassan
    • Constructor Detail

      • PseudoRecall

        public PseudoRecall()
      • PseudoRecall

        public PseudoRecall​(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 recall of the machine learning predictions compared to a gold standard , which is how many of the s and t were mapped.
        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 recall.