LabelType - The type that the nodes' labels can take on. Note that
these values will be considered enumerations internally.@PublicationReference(author="Jonahtan S. Yedidia, William T. Freeman, and Yair Weiss", title="Understanding Belief Propagation and its Generalizations", type=TechnicalReport, year=2001, notes="Institution: Mitsubishi Electric Research Laboratories") public class SumProductBeliefPropagation<LabelType> extends SumProductInferencingAlgorithm<LabelType>
DEFAULT_EPS, DEFAULT_MAX_ITERATIONS, DEFAULT_NUM_THREADS, fn, nodes| Constructor and Description |
|---|
SumProductBeliefPropagation()
Creates a new BP solver with the default settings.
|
SumProductBeliefPropagation(int maxNumIterations)
Creates a new BP solver with the default settings excepting max number of
iterations.
|
SumProductBeliefPropagation(int maxNumIterations,
double eps,
int numThreads)
Creates a new BP solver with the specified settings.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeTemporaryMessage(int edge)
Private helper that computes the temporary message for the specified edge
for the current iteration going in the specified direction (a different
message for each direction)
|
getBelief, init, solvepublic SumProductBeliefPropagation(int maxNumIterations,
double eps,
int numThreads)
maxNumIterations - The maximum number of iterations that will be runeps - The stopping epsilon that will be usednumThreads - The number of threads that will be usedpublic SumProductBeliefPropagation(int maxNumIterations)
maxNumIterations - The maximum number of iterations that will be runpublic SumProductBeliefPropagation()
protected void computeTemporaryMessage(int edge)
SumProductInferencingAlgorithmcomputeTemporaryMessage in class SumProductInferencingAlgorithm<LabelType>edge - The edge to compute the temporary message for (you can't
replace the current message yet as the current message may be needed for
other edges).