public class MPEInference extends InferenceApplication
Model
, given the Database's ObservedAtoms.
The set of RandomVariableAtoms is those persisted in the Database when inference() is called.
This set must contain all RandomVariableAtoms the Model might access.Modifier and Type | Field and Description |
---|---|
protected PersistedAtomManager |
atomManager |
CONFIG_PREFIX, 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 |
---|
MPEInference(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.
|
close, getGroundRuleStore, getInferenceApplication, getReasoner, getTermStore, initialize
protected PersistedAtomManager atomManager
protected void completeInitialize()
InferenceApplication
completeInitialize
in class InferenceApplication
public void inference()
InferenceApplication
inference
in class InferenceApplication
Copyright © 2018 University of California, Santa Cruz. All rights reserved.