|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.grmm.inference.AbstractInferencer cc.mallet.grmm.inference.gbp.ParentChildGBP
public class ParentChildGBP
Created: May 27, 2005
Constructor Summary | |
---|---|
ParentChildGBP(RegionGraphGenerator regioner)
|
|
ParentChildGBP(RegionGraphGenerator regioner,
MessageStrategy sender)
|
Method Summary | |
---|---|
void |
computeMarginals(FactorGraph mdl)
Computes marginal distributions for a factor graph. |
void |
dump()
|
double |
getInertiaWeight()
|
boolean |
getUseInertia()
|
double |
lookupLogJoint(Assignment assn)
Returns the natural logarithm of the joint probability of a given assignment, computed in some factorized fashion. |
Factor |
lookupMarginal(Variable variable)
Returns the computed marginal of a given variable. |
Factor |
lookupMarginal(VarSet varSet)
Returns the computed marginal of a given clique in a graph. |
static ParentChildGBP |
makeBPInferencer()
|
static ParentChildGBP |
makeKikuchiInferencer()
|
void |
setInertiaWeight(double inertiaWeight)
|
void |
setUseInertia(boolean useInertia)
|
Methods inherited from class cc.mallet.grmm.inference.AbstractInferencer |
---|
duplicate, lookupJoint, query, reportTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParentChildGBP(RegionGraphGenerator regioner)
public ParentChildGBP(RegionGraphGenerator regioner, MessageStrategy sender)
Method Detail |
---|
public static ParentChildGBP makeBPInferencer()
public static ParentChildGBP makeKikuchiInferencer()
public boolean getUseInertia()
public void setUseInertia(boolean useInertia)
public double getInertiaWeight()
public void setInertiaWeight(double inertiaWeight)
public Factor lookupMarginal(Variable variable)
Inferencer
lookupMarginal
in interface Inferencer
lookupMarginal
in class AbstractInferencer
Inferencer.computeMarginals(FactorGraph)
public Factor lookupMarginal(VarSet varSet)
Inferencer
lookupMarginal
in interface Inferencer
lookupMarginal
in class AbstractInferencer
Inferencer.computeMarginals(cc.mallet.grmm.types.FactorGraph)
,
#computeMarginals(JunctionTree)
public double lookupLogJoint(Assignment assn)
Inferencer
This method is less likely to underflow than
Math.log (lookupJoint (assn))
.
lookupLogJoint
in interface Inferencer
lookupLogJoint
in class AbstractInferencer
Inferencer.computeMarginals(cc.mallet.grmm.types.FactorGraph)
,
#computeMarginals(JunctionTree)
public void computeMarginals(FactorGraph mdl)
Inferencer
computeMarginals
in interface Inferencer
computeMarginals
in class AbstractInferencer
public void dump()
dump
in interface Inferencer
dump
in class AbstractInferencer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |