Class ApproximateNaiveMlnReasoner

    • Field Detail

      • maxNumberOfSelectedInterpretations

        private long maxNumberOfSelectedInterpretations
        The maximum number of interpretations selected from the whole set of interpretations. Is -1 if all interpretations are to be selected.
      • maxNumberOfInterpretationsForModel

        private long maxNumberOfInterpretationsForModel
        The maximum number of interpretations used for the model. Those interpretations are the subset of the interpretations selected with maximum weight. Is -1 if all interpretations are used for the model. It has to be maxNumberOfSelectedInterpretations >= maxNumberOfInterpretationsForModel.
    • Constructor Detail

      • ApproximateNaiveMlnReasoner

        public ApproximateNaiveMlnReasoner​(long maxNumberOfSelectedInterpretations,
                                           long maxNumberOfInterpretationsForModel)
        Creates a new ApproximateNaiveMlnReasoner.
        Parameters:
        maxNumberOfSelectedInterpretations - the maximum number of interpretations selected from the whole set of interpretations. Is -1 if all interpretations are to be selected.
        maxNumberOfInterpretationsForModel - the maximum number of interpretations used for the model. Those interpretations are the subset of the interpretations selected with maximum weight. Is -1 if all interpretations are used for the model. It has to be maxNumberOfSelectedInterpretations >= maxNumberOfInterpretationsForModel.
    • Method Detail

      • computeModel

        public java.util.Map<HerbrandInterpretation,​java.lang.Double> computeModel​(MarkovLogicNetwork mln,
                                                                                         FolSignature signature)
        Computes the model of the given MLN wrt. the optimization parameters
        Parameters:
        mln - some mln
        signature - some signature
        Returns:
        the model of the given MLN wrt. the optimization parameters.