55#define DEFAULT_VIRTUAL_LBP_SIZE 5000
60 template <
typename GUM_SCALAR,
template <
typename >
class APPROX >
67 template <
typename GUM_SCALAR,
template <
typename >
class APPROX >
72 template <
typename GUM_SCALAR,
template <
typename >
class APPROX >
75 for (
const auto& x: this->hardEvidence()) {
80 if (!this->isSetEstimator) { this->setEstimatorFromLBP_(&lbp,
virtualLBPSize_); }
82 this->loopApproxInference_();
virtual void addEvidence(NodeId id, const Idx val) final
adds a new hard evidence on node id
virtual void makeInference() final
perform the heavy computations needed to compute the targets' posteriors
Class representing the minimal interface for Bayesian network with no numerical data.
<agrum/BN/inference/loopyBeliefPropagation.h>
virtual void makeInference_()
makes the inference by generating samples w.r.t the mother class' sampling method after initalizing e...
virtual ~LoopySamplingInference()
destructor
LoopySamplingInference(const IBayesNet< GUM_SCALAR > *bn)
Default constructor.
GUM_SCALAR virtualLBPSize_
This file implements a Hybrid sampling class using LoopyBeliefPropagation and an approximate Inferenc...
#define DEFAULT_VIRTUAL_LBP_SIZE
gum is the global namespace for all aGrUM entities