public class IteratingMlnReasoner extends AbstractMlnReasoner
Modifier and Type | Field and Description |
---|---|
private long |
numberOfIterations
The number of iterations.
|
private AbstractMlnReasoner |
reasoner
The reasoner inside this reasoner.
|
Constructor and Description |
---|
IteratingMlnReasoner(AbstractMlnReasoner reasoner,
long numberOfIterations)
Creates a new IteratingMlnReasoner for the given MLN reaasoner.
|
Modifier and Type | Method and Description |
---|---|
protected double |
doQuery(MarkovLogicNetwork mln,
FolFormula query,
FolSignature signature)
Performs the actual querying.
|
computeWeight, numberOfGroundSatisfactions, query, query
private AbstractMlnReasoner reasoner
private long numberOfIterations
public IteratingMlnReasoner(AbstractMlnReasoner reasoner, long numberOfIterations)
reasoner
- some MLN reasoner.numberOfIterations
- the number of iterations for the reasonerprotected double doQuery(MarkovLogicNetwork mln, FolFormula query, FolSignature signature)
AbstractMlnReasoner
doQuery
in class AbstractMlnReasoner
mln
- an MLNquery
- a fol formula guaranteed to be ground.