public class ApproximateNaiveMlnReasoner extends AbstractMlnReasoner
| Constructor and Description |
|---|
ApproximateNaiveMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature,
long maxNumberOfSelectedInterpretations,
long maxNumberOfInterpretationsForModel)
Creates a new ApproximateNaiveMlnReasoner for the given Markov logic network.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
computeWeight, getSignature, numberOfGroundSatisfactions, querypublic ApproximateNaiveMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature,
long maxNumberOfSelectedInterpretations,
long maxNumberOfInterpretationsForModel)
beliefBase - a Markov logic network.signature - another signature (if the probability distribution should be defined
on that one (that one should subsume the signature of the Markov logic network)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.public void reset()
AbstractMlnReasonerreset in class AbstractMlnReasonerprotected double doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonerquery - a fol formula guaranteed to be ground.Copyright © 2018. All rights reserved.