|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Inferencer
Interface implemented by all inferencers, which are algorithms for computing (perhaps approximately) marginal distributions over nodes in the model.
If you are implementing a new inferencer, you may wish to consider
subclassing AbstractInferencer, which implements this
interface.
Created: Wed Oct 1 11:18:09 2003
| Method Summary | |
|---|---|
void |
computeMarginals(FactorGraph mdl)
Computes marginal distributions for a factor graph. |
void |
dump()
|
Inferencer |
duplicate()
|
double |
lookupJoint(Assignment assn)
Returns the joint probability of a given assignment, computed in some factorized fashion. |
double |
lookupLogJoint(Assignment assn)
Returns the natural logarithm of the joint probability of a given assignment, computed in some factorized fashion. |
Factor |
lookupMarginal(Variable v)
Returns the computed marginal of a given variable. |
Factor |
lookupMarginal(VarSet varSet)
Returns the computed marginal of a given clique in a graph. |
double |
query(FactorGraph mdl,
Assignment assn)
Computes the marginal probability of a given assignment to a small number of model variables. |
void |
reportTime()
Outputs some measure of the total time spent in this inferencer. |
| Method Detail |
|---|
void computeMarginals(FactorGraph mdl)
java.lang.UnsupportedOperationException - If this inferencer does
not support undirected models (unlikely).Factor lookupMarginal(Variable v)
computeMarginals(FactorGraph)Factor lookupMarginal(VarSet varSet)
java.lang.UnsupportedOperationException - If this inferencer does
not compute marginals for the size of clique given.computeMarginals(cc.mallet.grmm.types.FactorGraph),
#computeMarginals(JunctionTree)double lookupJoint(Assignment assn)
computeMarginals(cc.mallet.grmm.types.FactorGraph),
#computeMarginals(JunctionTree)double lookupLogJoint(Assignment assn)
This method is less likely to underflow than
Math.log (lookupJoint (assn)).
computeMarginals(cc.mallet.grmm.types.FactorGraph),
#computeMarginals(JunctionTree)
double query(FactorGraph mdl,
Assignment assn)
Inferencer duplicate()
void dump()
void reportTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||