public class IteratingMlnReasoner extends AbstractMlnReasoner
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<FolFormula,java.lang.Double> |
archive
For archiving previous results.
|
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(FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
computeWeight, getSignature, numberOfGroundSatisfactions, querygetKnowledgeBaseprivate AbstractMlnReasoner reasoner
private long numberOfIterations
private java.util.Map<FolFormula,java.lang.Double> archive
public IteratingMlnReasoner(AbstractMlnReasoner reasoner, long numberOfIterations)
reasoner - some MLN reasoner.numberOfIterations - the number of iterations for the reasonerpublic void reset()
AbstractMlnReasonerreset in class AbstractMlnReasonerprotected double doQuery(FolFormula query)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonerquery - a fol formula guaranteed to be ground.