grounding
Class Grounding

java.lang.Object
  extended by grounding.Grounding

public class Grounding
extends java.lang.Object

This class handles the grounding process of MLN inference/learning with SQL queries. See our technical report at http://tuffguy.cs.wisc.edu/tuffy/tuffy-tech-report.pdf as well as prior works: http://alchemy.cs.washington.edu/papers/singla06a/singla06a.pdf http://alchemy.cs.washington.edu/papers/pdfs/shavlik-natarajan09.pdf Alchemy implements "lazy inference" with a one-step look-ahead strategy for initial groundings; we generalize it into a closure algorithm that avoid incremental "activation" altogether.


Constructor Summary
Grounding(MarkovLogicNetwork mln)
          Create a grounding worker for an MLN.
 
Method Summary
 void assignRandomTruth()
          Assign random truth values to the atoms.
 void constructMRF()
          Construct the MRF.
 MarkovLogicNetwork getMLN()
          Get the MLN object used for grounding.
 int getNumAtoms()
          Return the number of active atoms in the grounding result.
 int getNumClauses()
          Return the number of active clauses in the grounding result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grounding

public Grounding(MarkovLogicNetwork mln)
Create a grounding worker for an MLN.

Method Detail

assignRandomTruth

public void assignRandomTruth()
Assign random truth values to the atoms.

See Also:
Config.relAtoms

constructMRF

public void constructMRF()
Construct the MRF. First compute the closure of active atoms, then active clauses.


getMLN

public MarkovLogicNetwork getMLN()
Get the MLN object used for grounding.


getNumAtoms

public int getNumAtoms()
Return the number of active atoms in the grounding result.


getNumClauses

public int getNumClauses()
Return the number of active clauses in the grounding result.