public class ApproximateNaiveMlnReasoner extends AbstractMlnReasoner
| Constructor and Description |
|---|
ApproximateNaiveMlnReasoner(long maxNumberOfSelectedInterpretations,
long maxNumberOfInterpretationsForModel)
Creates a new ApproximateNaiveMlnReasoner.
|
| Modifier and Type | Method and Description |
|---|---|
Map<net.sf.tweety.logics.fol.semantics.HerbrandInterpretation,Double> |
computeModel(MarkovLogicNetwork mln,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Computes the model of the given MLN wrt.
|
protected double |
doQuery(MarkovLogicNetwork mln,
net.sf.tweety.logics.fol.syntax.FolFormula query,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Performs the actual querying.
|
computeWeight, numberOfGroundSatisfactions, query, querypublic ApproximateNaiveMlnReasoner(long maxNumberOfSelectedInterpretations,
long maxNumberOfInterpretationsForModel)
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.protected double doQuery(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.syntax.FolFormula query, net.sf.tweety.logics.fol.syntax.FolSignature signature)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonermln - an MLNquery - a fol formula guaranteed to be ground.public Map<net.sf.tweety.logics.fol.semantics.HerbrandInterpretation,Double> computeModel(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.syntax.FolSignature signature)
mln - some mlnquery - some querysignature - some signatureCopyright © 2019. All rights reserved.