![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/BN/inference/loopySamplingInference.h> More...
#include <loopySamplingInference.h>
Public Member Functions | |
| LoopySamplingInference (const IBayesNet< GUM_SCALAR > *bn) | |
| Default constructor. | |
| virtual | ~LoopySamplingInference () |
| destructor | |
| virtual void | makeInference_ () |
| makes the inference by generating samples w.r.t the mother class' sampling method after initalizing estimators with loopy belief propagation | |
| void | setVirtualLBPSize (GUM_SCALAR vlbpsize) |
Protected Attributes | |
| GUM_SCALAR | virtualLBPSize_ |
<agrum/BN/inference/loopySamplingInference.h>
class for making hybrid sampling inference with loopy belief propagation and an approximation inference method in Bayesian networks.
This class inherits of template class APPROX, which SHOULD be one of the 4 approximate inference methods (MonteCarlo, Weighted, Importance, Gibbs). It makes the inference with respect to the inherited class' method, after having initialized the estimators with the posteriors obtained by running LoopyBeliefPropagation algorithm.
Definition at line 76 of file loopySamplingInference.h.
|
explicit |
Default constructor.
Definition at line 61 of file loopySamplingInference_tpl.h.
References LoopySamplingInference(), DEFAULT_VIRTUAL_LBP_SIZE, and virtualLBPSize_.
Referenced by LoopySamplingInference(), and ~LoopySamplingInference().
|
virtual |
destructor
Definition at line 68 of file loopySamplingInference_tpl.h.
References LoopySamplingInference().
|
virtual |
makes the inference by generating samples w.r.t the mother class' sampling method after initalizing estimators with loopy belief propagation
Definition at line 73 of file loopySamplingInference_tpl.h.
References gum::GraphicalModelInference< GUM_SCALAR >::addEvidence(), gum::GraphicalModelInference< GUM_SCALAR >::makeInference(), and virtualLBPSize_.
|
inline |
Definition at line 92 of file loopySamplingInference.h.
|
protected |
Definition at line 97 of file loopySamplingInference.h.
Referenced by LoopySamplingInference(), and makeInference_().