cc.mallet.grmm.inference
Class ResidualBP
java.lang.Object
cc.mallet.grmm.inference.AbstractInferencer
cc.mallet.grmm.inference.AbstractBeliefPropagation
cc.mallet.grmm.inference.ResidualBP
- All Implemented Interfaces:
- Inferencer, java.io.Serializable, java.lang.Cloneable
public class ResidualBP
- extends AbstractBeliefPropagation
A dynamic BP schedule where
The loopy belief propagation algorithm for approximate inference in
general graphical models.
Created: Wed Nov 5 19:30:15 2003
- Version:
- $Id: ResidualBP.java,v 1.1 2007/10/22 21:37:49 mccallum Exp $
- Author:
- Charles Sutton
- See Also:
- Serialized Form
Methods inherited from class cc.mallet.grmm.inference.AbstractBeliefPropagation |
copyOldMessages, doneWithGraph, dump, dump, getMessager, getMessagesSent, getMessagesUsedLastTime, getTotalMessagesSent, hasConverged, hasConverged, initForGraph, lookupLogJoint, lookupMarginal, lookupMarginal, reportTime, resetMessagesSentAtStart, sendMessage, sendMessage, setMessager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAX_ITER
public static final int DEFAULT_MAX_ITER
- See Also:
- Constant Field Values
ResidualBP
public ResidualBP()
ResidualBP
public ResidualBP(int maxIter)
ResidualBP
public ResidualBP(AbstractBeliefPropagation.MessageStrategy messager,
int maxIter)
iterationsUsed
public int iterationsUsed()
- Overrides:
iterationsUsed
in class AbstractBeliefPropagation
setUseCaching
public void setUseCaching(boolean useCaching)
createForMaxProduct
public static Inferencer createForMaxProduct()
setRand
public ResidualBP setRand(java.util.Random rand)
computeMarginals
public void computeMarginals(FactorGraph mdl)
- Description copied from interface:
Inferencer
- Computes marginal distributions for a factor graph.
- Specified by:
computeMarginals
in interface Inferencer
- Specified by:
computeMarginals
in class AbstractInferencer