|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tuffy.main.Infer
public abstract class Infer
Common routines to inference procedures.
Field Summary | |
---|---|
protected RDB |
db
The DB. |
protected DataMover |
dmover
|
protected Grounding |
grounding
Grounding worker. |
protected MarkovLogicNetwork |
mln
The MLN. |
protected CommandOptions |
options
Command line options. |
Constructor Summary | |
---|---|
Infer()
|
Method Summary | |
---|---|
protected void |
cleanUp()
Clean up temporary data: the schema in PostgreSQL and the working directory. |
protected void |
ground()
Ground the MLN into an MRF. |
protected void |
loadMLN(MarkovLogicNetwork mln,
RDB adb,
CommandOptions opt)
Load the rules and data of the MLN program. |
protected void |
setUp(CommandOptions opt)
Set up MLN inference, including the following steps: 1) loadMLN loadMLN(tuffy.mln.MarkovLogicNetwork, tuffy.db.RDB, tuffy.parse.CommandOptions) ;
2) store symbols and evidence MarkovLogicNetwork.materializeTables() ;
3) run KBMC;
4) apply scoping rules;
5) mark query atoms in the database MarkovLogicNetwork.storeAllQueries() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RDB db
protected DataMover dmover
protected MarkovLogicNetwork mln
protected CommandOptions options
protected Grounding grounding
Constructor Detail |
---|
public Infer()
Method Detail |
---|
protected void ground()
protected void setUp(CommandOptions opt)
loadMLN(tuffy.mln.MarkovLogicNetwork, tuffy.db.RDB, tuffy.parse.CommandOptions)
;
2) store symbols and evidence MarkovLogicNetwork.materializeTables()
;
3) run KBMC;
4) apply scoping rules;
5) mark query atoms in the database MarkovLogicNetwork.storeAllQueries()
.
opt
- command line options.protected void cleanUp()
protected void loadMLN(MarkovLogicNetwork mln, RDB adb, CommandOptions opt)
MarkovLogicNetwork.loadPrograms(String[])
;
2) MarkovLogicNetwork.loadQueries(String[])
;
3) MarkovLogicNetwork.parseQueryCommaList(String)
;
4) Mark closed-world predicate specified by CommandOptions.cwaPreds
;
5) MarkovLogicNetwork.prepareDB(RDB)
;
6) MarkovLogicNetwork.loadEvidences(String[])
.
mln
- the target MLNadb
- database object used for this MLNopt
- command line options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |