public class LazyMPEInference extends InferenceApplication
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PREFIX
Prefix of property keys used by this class.
|
protected LazyAtomManager |
lazyAtomManager |
static int |
MAX_ROUNDS_DEFAULT |
static String |
MAX_ROUNDS_KEY
Key for int property for the maximum number of rounds of inference.
|
protected int |
maxRounds |
db, GROUND_RULE_STORE_DEFAULT, GROUND_RULE_STORE_KEY, groundRuleStore, model, reasoner, REASONER_DEFAULT, REASONER_KEY, TERM_GENERATOR_DEFAULT, TERM_GENERATOR_KEY, TERM_STORE_DEFAULT, TERM_STORE_KEY, termGenerator, termStore
Constructor and Description |
---|
LazyMPEInference(Model model,
Database db) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeInitialize()
Complete the initialization process.
|
void |
inference()
Minimizes the total weighted incompatibility of the GroundAtoms in the Database
according to the Model and commits the updated truth values back to the Database.
|
static void |
inference(List<Rule> rules,
Reasoner reasoner,
GroundRuleStore groundRuleStore,
TermStore termStore,
TermGenerator termGenerator,
LazyAtomManager lazyAtomManager,
int maxRounds)
Do the full MPE inference process.
|
close, getGroundRuleStore, getInferenceApplication, getReasoner, getTermStore, initialize
public static final String CONFIG_PREFIX
public static final String MAX_ROUNDS_KEY
public static final int MAX_ROUNDS_DEFAULT
protected final int maxRounds
protected LazyAtomManager lazyAtomManager
protected void completeInitialize()
InferenceApplication
completeInitialize
in class InferenceApplication
public void inference()
InferenceApplication
inference
in class InferenceApplication
public static void inference(List<Rule> rules, Reasoner reasoner, GroundRuleStore groundRuleStore, TermStore termStore, TermGenerator termGenerator, LazyAtomManager lazyAtomManager, int maxRounds)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.