public class SimpleSamplingMlnReasoner extends AbstractMlnReasoner
| Modifier and Type | Field and Description |
|---|---|
private int |
numOfPositiveTests |
private double |
precision
The computation is aborted when the given precision is reached for at least
numOfPositive number of consecutive tests.
|
| Constructor and Description |
|---|
SimpleSamplingMlnReasoner(BeliefBase beliefBase,
FolSignature signature,
double precision,
int numOfPositiveTests)
Creates a new SimpleSamplingMlnReasoner for the given Markov logic network.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
doQuery(FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
computeWeight, getSignature, numberOfGroundSatisfactions, querygetKnowledgeBaseprivate double precision
private int numOfPositiveTests
public SimpleSamplingMlnReasoner(BeliefBase beliefBase, FolSignature signature, double precision, int numOfPositiveTests)
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)precision - the precisionnumOfPositiveTests - the number of positive consecutive tests on precisionpublic void reset()
AbstractMlnReasonerreset in class AbstractMlnReasonerprotected double doQuery(FolFormula query)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonerquery - a fol formula guaranteed to be ground.