56#define DEFAULT_VIRTUAL_LBP_SIZE 5000
61 template < GUM_Numeric GUM_SCALAR,
template <
typename >
class APPROX >
68 template < GUM_Numeric GUM_SCALAR,
template <
typename >
class APPROX >
73 template < GUM_Numeric GUM_SCALAR,
template <
typename >
class APPROX >
76 for (
const auto& x: this->hardEvidence()) {
81 if (!this->isSetEstimator) { this->setEstimatorFromLBP_(&lbp,
virtualLBPSize_); }
83 this->loopApproxInference_();
86 template < GUM_Numeric GUM_SCALAR,
template <
typename >
class APPROX >
virtual void makeInference() final
perform the heavy computations needed to compute the targets' posteriors
virtual void addEvidence(NodeId id, const Idx val) final
adds a new hard evidence on node id
Class representing the minimal interface for Bayesian network with no numerical data.
<agrum/BN/inference/loopyBeliefPropagation.h>
~LoopySamplingInference() override
destructor
void makeInference_() override
makes the inference by generating samples w.r.t the mother class' sampling method after initalizing e...
void setVirtualLBPSize(GUM_SCALAR vlbpsize)
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