![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Class template representing a CredalNet inference engine using one or more IBayesNet inference engines such as LazyPropagation. More...
#include <multipleInferenceEngine.h>
Public Types | |
| enum class | ApproximationSchemeSTATE : char { Undefined , Continue , Epsilon , Rate , Limit , TimeLimit , Stopped } |
| The different state of an approximation scheme. More... | |
Public Member Functions | |
| virtual void | addEvidence (NodeId id, const Idx val) final |
| adds a new hard evidence on node id | |
| virtual void | addEvidence (const std::string &nodeName, const Idx val) final |
| adds a new hard evidence on node named nodeName | |
| virtual void | addEvidence (NodeId id, const std::string &label) final |
| adds a new hard evidence on node id | |
| virtual void | addEvidence (const std::string &nodeName, const std::string &label) final |
| adds a new hard evidence on node named nodeName | |
| virtual void | addEvidence (NodeId id, const std::vector< GUM_SCALAR > &vals) final |
| adds a new evidence on node id (might be soft or hard) | |
| virtual void | addEvidence (const std::string &nodeName, const std::vector< GUM_SCALAR > &vals) final |
| adds a new evidence on node named nodeName (might be soft or hard) | |
| virtual void | addEvidence (const Tensor< GUM_SCALAR > &pot) final |
| adds a new evidence on node id (might be soft or hard) | |
Constructors / Destructors | |
| MultipleInferenceEngine (const CredalNet< GUM_SCALAR > &credalNet) | |
| Constructor. | |
| virtual | ~MultipleInferenceEngine () |
| Destructor. | |
Post-inference methods | |
| virtual void | eraseAllEvidence () |
| Erase all inference related data to perform another one. | |
Pure virtual methods | |
| virtual void | makeInference ()=0 |
| To be redefined by each credal net algorithm. | |
Getters and setters | |
| VarMod2BNsMap< GUM_SCALAR > * | getVarMod2BNsMap () |
| Get optimum IBayesNet. | |
| const CredalNet< GUM_SCALAR > & | credalNet () const |
| Get this creadal network. | |
| const NodeProperty< std::vector< NodeId > > & | getT0Cluster () const |
| Get the t0_ cluster. | |
| const NodeProperty< std::vector< NodeId > > & | getT1Cluster () const |
| Get the t1_ cluster. | |
| void | setRepetitiveInd (const bool repetitive) |
| void | storeVertices (const bool value) |
| bool | storeVertices () const |
| Get the number of iterations without changes used to stop some algorithms. | |
| void | storeBNOpt (const bool value) |
| bool | storeBNOpt () const |
| bool | repetitiveInd () const |
| Get the current independence status. | |
Pre-inference initialization methods | |
| void | insertModalsFile (const std::string &path) |
| Insert variables modalities from file to compute expectations. | |
| void | insertModals (const std::map< std::string, std::vector< GUM_SCALAR > > &modals) |
| Insert variables modalities from map to compute expectations. | |
| virtual void | insertEvidenceFile (const std::string &path) |
| Insert evidence from file. | |
| void | insertEvidence (const std::map< std::string, std::vector< GUM_SCALAR > > &eviMap) |
| Insert evidence from map. | |
| void | insertEvidence (const NodeProperty< std::vector< GUM_SCALAR > > &evidence) |
| Insert evidence from Property. | |
| void | insertQueryFile (const std::string &path) |
| Insert query variables states from file. | |
| void | insertQuery (const NodeProperty< std::vector< bool > > &query) |
| Insert query variables and states from Property. | |
Post-inference methods | |
| Tensor< GUM_SCALAR > | marginalMin (const NodeId id) const |
| Get the lower marginals of a given node id. | |
| Tensor< GUM_SCALAR > | marginalMin (const std::string &varName) const |
| Get the lower marginals of a given variable name. | |
| Tensor< GUM_SCALAR > | marginalMax (const NodeId id) const |
| Get the upper marginals of a given node id. | |
| Tensor< GUM_SCALAR > | marginalMax (const std::string &varName) const |
| Get the upper marginals of a given variable name. | |
| const GUM_SCALAR & | expectationMin (const NodeId id) const |
| Get the lower expectation of a given node id. | |
| const GUM_SCALAR & | expectationMin (const std::string &varName) const |
| Get the lower expectation of a given variable name. | |
| const GUM_SCALAR & | expectationMax (const NodeId id) const |
| Get the upper expectation of a given node id. | |
| const GUM_SCALAR & | expectationMax (const std::string &varName) const |
| Get the upper expectation of a given variable name. | |
| const std::vector< GUM_SCALAR > & | dynamicExpMin (const std::string &varName) const |
| Get the lower dynamic expectation of a given variable prefix (without the time step included, i.e. | |
| const std::vector< GUM_SCALAR > & | dynamicExpMax (const std::string &varName) const |
| Get the upper dynamic expectation of a given variable prefix (without the time step included, i.e. | |
| const std::vector< std::vector< GUM_SCALAR > > & | vertices (const NodeId id) const |
| Get the vertice of a given node id. | |
| void | saveMarginals (const std::string &path) const |
| Saves marginals to file. | |
| void | saveExpectations (const std::string &path) const |
| Saves expectations to file. | |
| void | saveVertices (const std::string &path) const |
| Saves vertices to file. | |
| void | dynamicExpectations () |
| Compute dynamic expectations. | |
| std::string | toString () const |
| Print all nodes marginals to standart output. | |
| const std::string | getApproximationSchemeMsg () |
| Get approximation scheme state. | |
Getters and setters | |
| void | setEpsilon (double eps) override |
| Given that we approximate f(t), stopping criterion on |f(t+1)-f(t)|. | |
| double | epsilon () const override |
| Returns the value of epsilon. | |
| void | disableEpsilon () override |
| Disable stopping criterion on epsilon. | |
| void | enableEpsilon () override |
| Enable stopping criterion on epsilon. | |
| bool | isEnabledEpsilon () const override |
| Returns true if stopping criterion on epsilon is enabled, false otherwise. | |
| void | setMinEpsilonRate (double rate) override |
| Given that we approximate f(t), stopping criterion on d/dt(|f(t+1)-f(t)|). | |
| double | minEpsilonRate () const override |
| Returns the value of the minimal epsilon rate. | |
| void | disableMinEpsilonRate () override |
| Disable stopping criterion on epsilon rate. | |
| void | enableMinEpsilonRate () override |
| Enable stopping criterion on epsilon rate. | |
| bool | isEnabledMinEpsilonRate () const override |
| Returns true if stopping criterion on epsilon rate is enabled, false otherwise. | |
| void | setMaxIter (Size max) override |
| Stopping criterion on number of iterations. | |
| Size | maxIter () const override |
| Returns the criterion on number of iterations. | |
| void | disableMaxIter () override |
| Disable stopping criterion on max iterations. | |
| void | enableMaxIter () override |
| Enable stopping criterion on max iterations. | |
| bool | isEnabledMaxIter () const override |
| Returns true if stopping criterion on max iterations is enabled, false otherwise. | |
| void | setMaxTime (double timeout) override |
| Stopping criterion on timeout. | |
| double | maxTime () const override |
| Returns the timeout (in seconds). | |
| double | currentTime () const override |
| Returns the current running time in second. | |
| void | disableMaxTime () override |
| Disable stopping criterion on timeout. | |
| void | enableMaxTime () override |
| Enable stopping criterion on timeout. | |
| bool | isEnabledMaxTime () const override |
| Returns true if stopping criterion on timeout is enabled, false otherwise. | |
| void | setPeriodSize (Size p) override |
| How many samples between two stopping is enable. | |
| Size | periodSize () const override |
| Returns the period size. | |
| void | setVerbosity (bool v) override |
| Set the verbosity on (true) or off (false). | |
| bool | verbosity () const override |
| Returns true if verbosity is enabled. | |
| ApproximationSchemeSTATE | stateApproximationScheme () const override |
| Returns the approximation scheme state. | |
| Size | nbrIterations () const override |
| Returns the number of iterations. | |
| const std::vector< double > & | history () const override |
| Returns the scheme history. | |
| void | initApproximationScheme () |
| Initialise the scheme. | |
| bool | startOfPeriod () const |
| Returns true if we are at the beginning of a period (compute error is mandatory). | |
| void | updateApproximationScheme (unsigned int incr=1) |
| Update the scheme w.r.t the new error and increment steps. | |
| Size | remainingBurnIn () const |
| Returns the remaining burn in. | |
| void | stopApproximationScheme () |
| Stop the approximation scheme. | |
| bool | continueApproximationScheme (double error) |
| Update the scheme w.r.t the new error. | |
Getters and setters | |
| std::string | messageApproximationScheme () const |
| Returns the approximation scheme message. | |
Accessors/Modifiers | |
| virtual void | setNumberOfThreads (Size nb) |
| sets the number max of threads to be used by the class containing this ThreadNumberManager | |
| virtual Size | getNumberOfThreads () const |
| returns the current max number of threads used by the class containing this ThreadNumberManager | |
| bool | isGumNumberOfThreadsOverriden () const |
| indicates whether the class containing this ThreadNumberManager set its own number of threads | |
Public Attributes | |
| Signaler3< Size, double, double > | onProgress |
| Progression, error and time. | |
| Signaler1< const std::string & > | onStop |
| Criteria messageApproximationScheme. | |
Protected Member Functions | |
Protected initialization methods | |
Fusion of threads optimal IBayesNet. | |
| void | initThreadsData_ (const Size &num_threads, const bool _storeVertices_, const bool _storeBNOpt_) |
| Initialize threads data. | |
Protected algorithms methods | |
| bool | updateThread_ (Size this_thread, const NodeId &id, const std::vector< GUM_SCALAR > &vertex, const bool &elimRedund=false) |
| Update thread information (marginals, expectations, IBayesNet, vertices) for a given node id. | |
| void | updateMarginals_ () |
| Fusion of threads marginals. | |
| const GUM_SCALAR | computeEpsilon_ () |
| Compute epsilon and update old marginals. | |
| void | updateOldMarginals_ () |
| Update old marginals (from current marginals). | |
Proptected post-inference methods | |
| void | optFusion_ () |
| Fusion of threads optimal IBayesNet. | |
| void | expFusion_ () |
| Fusion of threads expectations. | |
| void | verticesFusion_ () |
Protected initialization methods | |
| void | repetitiveInit_ () |
| Initialize t0_ and t1_ clusters. | |
| void | initExpectations_ () |
| Initialize lower and upper expectations before inference, with the lower expectation being initialized on the highest modality and the upper expectation being initialized on the lowest modality. | |
| void | initMarginals_ () |
| Initialize lower and upper old marginals and marginals before inference, with the lower marginal being 1 and the upper 0. | |
| void | displatchMarginalsToThreads_ () |
| computes Vector threadRanges_, that assigns some part of marginalMin_ and marginalMax_ to the threads | |
| void | initMarginalSets_ () |
| Initialize credal set vertices with empty sets. | |
Protected algorithms methods | |
| void | updateExpectations_ (const NodeId &id, const std::vector< GUM_SCALAR > &vertex) |
| Given a node id and one of it's possible vertex obtained during inference, update this node lower and upper expectations. | |
| void | updateCredalSets_ (const NodeId &id, const std::vector< GUM_SCALAR > &vertex, const bool &elimRedund=false) |
| Given a node id and one of it's possible vertex, update it's credal set. | |
Proptected post-inference methods | |
| void | dynamicExpectations_ () |
| Rearrange lower and upper expectations to suit dynamic networks. | |
Protected Attributes | |
| _margis_ | l_marginalMin_ |
| Threads lower marginals, one per thread. | |
| _margis_ | l_marginalMax_ |
| Threads upper marginals, one per thread. | |
| _expes_ | l_expectationMin_ |
| Threads lower expectations, one per thread. | |
| _expes_ | l_expectationMax_ |
| Threads upper expectations, one per thread. | |
| _modals_ | l_modal_ |
| Threads modalities. | |
| _credalSets_ | l_marginalSets_ |
| Threads vertices. | |
| _margis_ | l_evidence_ |
| Threads evidence. | |
| _clusters_ | l_clusters_ |
| Threads clusters. | |
| std::vector< _bnet_ * > | workingSet_ |
| Threads IBayesNet. | |
| std::vector< List< const Tensor< GUM_SCALAR > * > * > | workingSetE_ |
| Threads evidence. | |
| std::vector< BNInferenceEngine * > | l_inferenceEngine_ |
| Threads BNInferenceEngine. | |
| std::vector< VarMod2BNsMap< GUM_SCALAR > * > | l_optimalNet_ |
| Threads optimal IBayesNet. | |
| std::vector< std::mt19937 > | generators_ |
| the generators used for computing random values | |
| const CredalNet< GUM_SCALAR > * | credalNet_ |
| A pointer to the Credal Net used. | |
| margi | oldMarginalMin_ |
| Old lower marginals used to compute epsilon. | |
| margi | oldMarginalMax_ |
| Old upper marginals used to compute epsilon. | |
| margi | marginalMin_ |
| Lower marginals. | |
| margi | marginalMax_ |
| Upper marginals. | |
| credalSet | marginalSets_ |
| Credal sets vertices, if enabled. | |
| expe | expectationMin_ |
| Lower expectations, if some variables modalities were inserted. | |
| expe | expectationMax_ |
| Upper expectations, if some variables modalities were inserted. | |
| dynExpe | dynamicExpMin_ |
| Lower dynamic expectations. | |
| dynExpe | dynamicExpMax_ |
| Upper dynamic expectations. | |
| dynExpe | modal_ |
| Variables modalities used to compute expectations. | |
| margi | evidence_ |
| Holds observed variables states. | |
| query | query_ |
| Holds the query nodes states. | |
| cluster | t0_ |
| Clusters of nodes used with dynamic networks. | |
| cluster | t1_ |
| Clusters of nodes used with dynamic networks. | |
| bool | storeVertices_ |
True if credal sets vertices are stored, False otherwise. | |
| bool | repetitiveInd_ |
True if using repetitive independence ( dynamic network only ), False otherwise. | |
| bool | storeBNOpt_ |
| Iterations limit stopping rule used by some algorithms such as CNMonteCarloSampling. | |
| VarMod2BNsMap< GUM_SCALAR > | dbnOpt_ |
| Object used to efficiently store optimal bayes net during inference, for some algorithms. | |
| std::vector< std::pair< NodeId, Idx > > | threadRanges_ |
| the ranges of elements of marginalMin_ and marginalMax_ processed by each thread | |
| int | timeSteps_ |
| The number of time steps of this network (only usefull for dynamic networks). | |
| Size | threadMinimalNbOps_ {Size(20)} |
| double | current_epsilon_ |
| Current epsilon. | |
| double | last_epsilon_ |
| Last epsilon value. | |
| double | current_rate_ |
| Current rate. | |
| Size | current_step_ |
| The current step. | |
| Timer | timer_ |
| The timer. | |
| ApproximationSchemeSTATE | current_state_ |
| The current state. | |
| std::vector< double > | history_ |
| The scheme history, used only if verbosity == true. | |
| double | eps_ |
| Threshold for convergence. | |
| bool | enabled_eps_ |
| If true, the threshold convergence is enabled. | |
| double | min_rate_eps_ |
| Threshold for the epsilon rate. | |
| bool | enabled_min_rate_eps_ |
| If true, the minimal threshold for epsilon rate is enabled. | |
| double | max_time_ |
| The timeout. | |
| bool | enabled_max_time_ |
| If true, the timeout is enabled. | |
| Size | max_iter_ |
| The maximum iterations. | |
| bool | enabled_max_iter_ |
| If true, the maximum iterations stopping criterion is enabled. | |
| Size | burn_in_ |
| Number of iterations before checking stopping criteria. | |
| Size | period_size_ |
| Checking criteria frequency. | |
| bool | verbosity_ |
| If true, verbosity is enabled. | |
Private Types | |
| using | _infE_ = InferenceEngine< GUM_SCALAR > |
| To easily access InferenceEngine< GUM_SCALAR > methods. | |
| using | _cluster_ = NodeProperty< std::vector< NodeId > > |
| using | _credalSet_ = NodeProperty< std::vector< std::vector< GUM_SCALAR > > > |
| using | _margi_ = NodeProperty< std::vector< GUM_SCALAR > > |
| using | _expe_ = NodeProperty< GUM_SCALAR > |
| using | _bnet_ = IBayesNet< GUM_SCALAR > |
| using | _margis_ = std::vector< _margi_ > |
| using | _expes_ = std::vector< _expe_ > |
| using | _credalSets_ = std::vector< _credalSet_ > |
| using | _clusters_ = std::vector< std::vector< _cluster_ > > |
| using | _modals_ = std::vector< HashTable< std::string, std::vector< GUM_SCALAR > > > |
| using | credalSet = NodeProperty< std::vector< std::vector< GUM_SCALAR > > > |
| using | margi = NodeProperty< std::vector< GUM_SCALAR > > |
| using | expe = NodeProperty< GUM_SCALAR > |
| using | dynExpe = typename gum::HashTable< std::string, std::vector< GUM_SCALAR > > |
| using | query = NodeProperty< std::vector< bool > > |
| using | cluster = NodeProperty< std::vector< NodeId > > |
Private Member Functions | |
| void | _updateThreadCredalSets_ (Size this_thread, const NodeId &id, const std::vector< GUM_SCALAR > &vertex, const bool &elimRedund) |
| Ask for redundancy elimination of a node credal set of a calling thread. | |
| void | stopScheme_ (ApproximationSchemeSTATE new_state) |
| Stop the scheme given a new state. | |
Private Attributes | |
| Size | _nb_threads_ {0} |
| the max number of threads used by the class | |
Class template representing a CredalNet inference engine using one or more IBayesNet inference engines such as LazyPropagation.
Extends InferenceEngine< GUM_SCALAR >. Used for outer multi-threading such as CNMonteCarloSampling.
| GUM_SCALAR | A floating type ( float, double, long double ... ). |
| BNInferenceEngine | A IBayesNet inference engine such as LazyPropagation. |
Definition at line 74 of file multipleInferenceEngine.h.
|
private |
Definition at line 84 of file multipleInferenceEngine.h.
|
private |
Definition at line 79 of file multipleInferenceEngine.h.
|
private |
Definition at line 88 of file multipleInferenceEngine.h.
|
private |
Definition at line 80 of file multipleInferenceEngine.h.
|
private |
Definition at line 87 of file multipleInferenceEngine.h.
|
private |
Definition at line 82 of file multipleInferenceEngine.h.
|
private |
Definition at line 86 of file multipleInferenceEngine.h.
|
private |
To easily access InferenceEngine< GUM_SCALAR > methods.
Definition at line 77 of file multipleInferenceEngine.h.
|
private |
Definition at line 81 of file multipleInferenceEngine.h.
|
private |
Definition at line 85 of file multipleInferenceEngine.h.
|
private |
Definition at line 90 of file multipleInferenceEngine.h.
|
privateinherited |
Definition at line 80 of file inferenceEngine.h.
|
privateinherited |
Definition at line 73 of file inferenceEngine.h.
|
privateinherited |
Definition at line 77 of file inferenceEngine.h.
|
privateinherited |
Definition at line 75 of file inferenceEngine.h.
|
privateinherited |
Definition at line 74 of file inferenceEngine.h.
|
privateinherited |
Definition at line 79 of file inferenceEngine.h.
|
stronginherited |
The different state of an approximation scheme.
| Enumerator | |
|---|---|
| Undefined | |
| Continue | |
| Epsilon | |
| Rate | |
| Limit | |
| TimeLimit | |
| Stopped | |
Definition at line 86 of file IApproximationSchemeConfiguration.h.
|
explicit |
Constructor.
Definition at line 50 of file multipleInferenceEngine_tpl.h.
References gum::credal::InferenceEngine< GUM_SCALAR >::InferenceEngine(), MultipleInferenceEngine(), and gum::credal::InferenceEngine< GUM_SCALAR >::credalNet().
Referenced by MultipleInferenceEngine(), and ~MultipleInferenceEngine().
|
virtual |
Destructor.
Definition at line 57 of file multipleInferenceEngine_tpl.h.
References MultipleInferenceEngine().
|
inlineprivate |
Ask for redundancy elimination of a node credal set of a calling thread.
Called by updateThread_ if vertices are stored.
| this_thread | the id of the thread executing this method |
| id | A constant reference to the node id whose credal set is to be checked for redundancy. |
| vertex | The vertex to add to the credal set. |
| elimRedund | true if redundancy elimination is to be performed, false otherwise and by default. |
Definition at line 217 of file multipleInferenceEngine_tpl.h.
|
finalvirtualinherited |
adds a new hard evidence on node named nodeName
| UndefinedElement | if nodeName does not belong to the Bayesian network |
| InvalidArgument | if val is not a value for id |
| InvalidArgument | if nodeName already has an evidence |
Definition at line 1211 of file inferenceEngine_tpl.h.
References addEvidence(), and credalNet_.
|
finalvirtualinherited |
adds a new hard evidence on node named nodeName
| UndefinedElement | if nodeName does not belong to the Bayesian network |
| InvalidArgument | if val is not a value for id |
| InvalidArgument | if nodeName already has an evidence |
Definition at line 1223 of file inferenceEngine_tpl.h.
References addEvidence(), and credalNet_.
|
finalvirtualinherited |
adds a new evidence on node named nodeName (might be soft or hard)
| UndefinedElement | if id does not belong to the Bayesian network |
| InvalidArgument | if nodeName already has an evidence |
| FatalError | if vals=[0,0,...,0] |
| InvalidArgument | if the size of vals is different from the domain size of node nodeName |
Definition at line 1230 of file inferenceEngine_tpl.h.
References addEvidence(), and credalNet_.
|
finalvirtualinherited |
adds a new evidence on node id (might be soft or hard)
| UndefinedElement | if the tensor is defined over several nodes |
| UndefinedElement | if the node on which the tensor is defined does not belong to the Bayesian network |
| InvalidArgument | if the node of the tensor already has an evidence |
| FatalError | if pot=[0,0,...,0] |
Definition at line 1236 of file inferenceEngine_tpl.h.
References addEvidence(), credalNet_, gum::Instantiation::end(), gum::Instantiation::inc(), gum::Instantiation::setFirst(), and gum::Instantiation::val().
|
finalvirtualinherited |
adds a new hard evidence on node id
| UndefinedElement | if id does not belong to the Bayesian network |
| InvalidArgument | if val is not a value for id |
| InvalidArgument | if id already has an evidence |
Definition at line 1203 of file inferenceEngine_tpl.h.
References addEvidence(), and credalNet_.
Referenced by addEvidence(), addEvidence(), addEvidence(), addEvidence(), addEvidence(), and addEvidence().
|
finalvirtualinherited |
adds a new hard evidence on node id
| UndefinedElement | if id does not belong to the Bayesian network |
| InvalidArgument | if val is not a value for id |
| InvalidArgument | if id already has an evidence |
Definition at line 1217 of file inferenceEngine_tpl.h.
References addEvidence(), and credalNet_.
|
finalvirtualinherited |
adds a new evidence on node id (might be soft or hard)
| UndefinedElement | if id does not belong to the Bayesian network |
| InvalidArgument | if id already has an evidence |
| FatalError | if vals=[0,0,...,0] |
| InvalidArgument | if the size of vals is different from the domain size of node id |
Definition at line 1193 of file inferenceEngine_tpl.h.
References evidence_.
|
inlineprotectedvirtual |
Compute epsilon and update old marginals.
Reimplemented from gum::credal::InferenceEngine< GUM_SCALAR >.
Definition at line 369 of file multipleInferenceEngine_tpl.h.
References computeEpsilon_(), gum::threadsSTL::ThreadExecutor::execute(), gum::credal::InferenceEngine< GUM_SCALAR >::marginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMin_, gum::threadsSTL::ThreadExecutor::nbRunningThreadsExecutors(), gum::credal::InferenceEngine< GUM_SCALAR >::oldMarginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::oldMarginalMin_, and gum::credal::InferenceEngine< GUM_SCALAR >::threadRanges_.
Referenced by computeEpsilon_().
Update the scheme w.r.t the new error.
Test the stopping criterion that are enabled.
| error | The new error value. |
| OperationNotAllowed | Raised if state != ApproximationSchemeSTATE::Continue. |
Definition at line 229 of file approximationScheme_inl.h.
References enabled_max_time_, and timer_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::computeKL_(), gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), gum::SamplingInference< GUM_SCALAR >::loopApproxInference_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceByOrderedArcs_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceByRandomOrder_(), and gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceNodeToNeighbours_().
|
inherited |
Get this creadal network.
Definition at line 81 of file inferenceEngine_tpl.h.
References credalNet_.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::CNLoopyPropagation(), InferenceEngine(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::MultipleInferenceEngine().
|
overridevirtualinherited |
Returns the current running time in second.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 136 of file approximationScheme_inl.h.
References timer_.
|
overridevirtualinherited |
Disable stopping criterion on epsilon.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 74 of file approximationScheme_inl.h.
References enabled_eps_.
Referenced by gum::learning::EMApproximationScheme::EMApproximationScheme(), and gum::learning::EMApproximationScheme::setMinEpsilonRate().
|
overridevirtualinherited |
Disable stopping criterion on max iterations.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 115 of file approximationScheme_inl.h.
References enabled_max_iter_.
Referenced by gum::learning::GreedyHillClimbing::GreedyHillClimbing().
|
overridevirtualinherited |
Disable stopping criterion on timeout.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 139 of file approximationScheme_inl.h.
References enabled_max_time_.
Referenced by gum::learning::GreedyHillClimbing::GreedyHillClimbing().
|
overridevirtualinherited |
Disable stopping criterion on epsilon rate.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 95 of file approximationScheme_inl.h.
References enabled_min_rate_eps_.
Referenced by gum::learning::GreedyHillClimbing::GreedyHillClimbing(), gum::GibbsBNdistance< GUM_SCALAR >::computeKL_(), and gum::learning::EMApproximationScheme::setEpsilon().
|
protectedinherited |
computes Vector threadRanges_, that assigns some part of marginalMin_ and marginalMax_ to the threads
Definition at line 1133 of file inferenceEngine_tpl.h.
References gum::ThreadNumberManager::getNumberOfThreads(), and threadRanges_.
Referenced by initMarginals_().
|
inherited |
Compute dynamic expectations.
Definition at line 739 of file inferenceEngine_tpl.h.
References dynamicExpectations_().
|
protectedinherited |
Rearrange lower and upper expectations to suit dynamic networks.
Definition at line 744 of file inferenceEngine_tpl.h.
References credalNet_, dynamicExpMax_, dynamicExpMin_, expectationMax_, expectationMin_, and modal_.
Referenced by dynamicExpectations().
|
inherited |
Get the upper dynamic expectation of a given variable prefix (without the time step included, i.e.
call with "temp" to get "temp_0", ..., "temp_T").
| varName | The variable name prefix which upper expectation we want. |
Definition at line 534 of file inferenceEngine_tpl.h.
References InferenceEngine(), dynamicExpMax(), and dynamicExpMax_.
Referenced by dynamicExpMax().
|
inherited |
Get the lower dynamic expectation of a given variable prefix (without the time step included, i.e.
call with "temp" to get "temp_0", ..., "temp_T").
| varName | The variable name prefix which lower expectation we want. |
Definition at line 518 of file inferenceEngine_tpl.h.
|
overridevirtualinherited |
Enable stopping criterion on epsilon.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 77 of file approximationScheme_inl.h.
References enabled_eps_.
|
overridevirtualinherited |
Enable stopping criterion on max iterations.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 118 of file approximationScheme_inl.h.
References enabled_max_iter_.
|
overridevirtualinherited |
Enable stopping criterion on timeout.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 142 of file approximationScheme_inl.h.
References enabled_max_time_.
|
overridevirtualinherited |
Enable stopping criterion on epsilon rate.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 98 of file approximationScheme_inl.h.
References enabled_min_rate_eps_.
Referenced by gum::learning::EMApproximationScheme::EMApproximationScheme(), and gum::GibbsBNdistance< GUM_SCALAR >::computeKL_().
|
overridevirtualinherited |
Returns the value of epsilon.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 71 of file approximationScheme_inl.h.
References eps_.
Referenced by gum::ImportanceSampling< GUM_SCALAR >::onContextualize_(), and gum::ImportanceSampling< GUM_SCALAR >::unsharpenBN_().
|
virtual |
Erase all inference related data to perform another one.
You need to insert evidence again if needed but modalities are kept. You can insert new ones by using the appropriate method which will delete the old ones.
Reimplemented from gum::credal::InferenceEngine< GUM_SCALAR >.
Definition at line 782 of file multipleInferenceEngine_tpl.h.
References gum::credal::InferenceEngine< GUM_SCALAR >::eraseAllEvidence(), eraseAllEvidence(), l_clusters_, l_evidence_, l_expectationMax_, l_expectationMin_, l_inferenceEngine_, l_marginalMax_, l_marginalMin_, l_marginalSets_, l_modal_, l_optimalNet_, gum::credal::InferenceEngine< GUM_SCALAR >::storeBNOpt_, gum::credal::InferenceEngine< GUM_SCALAR >::storeVertices_, workingSet_, and workingSetE_.
Referenced by eraseAllEvidence().
|
inherited |
Get the upper expectation of a given node id.
| id | The node id which upper expectation we want. |
Definition at line 510 of file inferenceEngine_tpl.h.
References expectationMax_.
|
inherited |
Get the upper expectation of a given variable name.
| varName | The variable name which upper expectation we want. |
Definition at line 496 of file inferenceEngine_tpl.h.
References credalNet_, and expectationMax_.
|
inherited |
Get the lower expectation of a given node id.
| id | The node id which lower expectation we want. |
Definition at line 503 of file inferenceEngine_tpl.h.
References expectationMin_.
|
inherited |
Get the lower expectation of a given variable name.
| varName | The variable name which lower expectation we want. |
Definition at line 488 of file inferenceEngine_tpl.h.
References credalNet_, and expectationMin_.
|
protected |
Fusion of threads expectations.
Definition at line 576 of file multipleInferenceEngine_tpl.h.
References gum::dispatchRangeToThreads(), gum::threadsSTL::ThreadExecutor::execute(), gum::credal::InferenceEngine< GUM_SCALAR >::expectationMax_, gum::credal::InferenceEngine< GUM_SCALAR >::expectationMin_, expFusion_(), gum::ThreadNumberManager::getNumberOfThreads(), l_expectationMax_, l_expectationMin_, l_modal_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalSets_, gum::credal::InferenceEngine< GUM_SCALAR >::modal_, gum::threadsSTL::ThreadExecutor::nbRunningThreadsExecutors(), gum::credal::InferenceEngine< GUM_SCALAR >::storeVertices_, and workingSet_.
Referenced by expFusion_().
|
inlineinherited |
Get approximation scheme state.
Definition at line 598 of file inferenceEngine.h.
References gum::IApproximationSchemeConfiguration::messageApproximationScheme().
|
virtualinherited |
returns the current max number of threads used by the class containing this ThreadNumberManager
Implements gum::IThreadNumberManager.
Referenced by gum::learning::IBNLearner::createParamEstimator_(), gum::learning::IBNLearner::createScore_(), gum::credal::InferenceEngine< GUM_SCALAR >::displatchMarginalsToThreads_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::expFusion_(), gum::ScheduledInference::scheduler(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::verticesFusion_().
|
inherited |
Get the t0_ cluster.
Definition at line 1007 of file inferenceEngine_tpl.h.
References t0_.
|
inherited |
Get the t1_ cluster.
Definition at line 1013 of file inferenceEngine_tpl.h.
References t1_.
|
inherited |
Get optimum IBayesNet.
Definition at line 163 of file inferenceEngine_tpl.h.
References dbnOpt_.
|
overridevirtualinherited |
Returns the scheme history.
| OperationNotAllowed | Raised if the scheme did not performed or if verbosity is set to false. |
Implements gum::IApproximationSchemeConfiguration.
Definition at line 178 of file approximationScheme_inl.h.
References GUM_ERROR, stateApproximationScheme(), and gum::IApproximationSchemeConfiguration::Undefined.
|
inherited |
Initialise the scheme.
Definition at line 189 of file approximationScheme_inl.h.
References ApproximationScheme(), gum::IApproximationSchemeConfiguration::Continue, current_epsilon_, current_rate_, current_state_, current_step_, and initApproximationScheme().
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::computeKL_(), initApproximationScheme(), gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), gum::SamplingInference< GUM_SCALAR >::loopApproxInference_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInference(), and gum::SamplingInference< GUM_SCALAR >::onStateChanged_().
|
protectedinherited |
Initialize lower and upper expectations before inference, with the lower expectation being initialized on the highest modality and the upper expectation being initialized on the lowest modality.
Definition at line 718 of file inferenceEngine_tpl.h.
References credalNet_, expectationMax_, expectationMin_, and modal_.
Referenced by eraseAllEvidence().
|
protectedinherited |
Initialize lower and upper old marginals and marginals before inference, with the lower marginal being 1 and the upper 0.
Definition at line 682 of file inferenceEngine_tpl.h.
References credalNet_, displatchMarginalsToThreads_(), marginalMax_, marginalMin_, oldMarginalMax_, and oldMarginalMin_.
Referenced by InferenceEngine(), and eraseAllEvidence().
|
protectedinherited |
Initialize credal set vertices with empty sets.
Definition at line 703 of file inferenceEngine_tpl.h.
References credalNet_, marginalSets_, and storeVertices_.
Referenced by eraseAllEvidence(), and storeVertices().
|
inlineprotected |
Initialize threads data.
| num_threads | The number of threads. |
| _storeVertices_ | True if vertices should be stored, False otherwise. |
| _storeBNOpt_ | True if optimal IBayesNet should be stored, false otherwise. |
Definition at line 62 of file multipleInferenceEngine_tpl.h.
References generators_, l_clusters_, l_expectationMax_, l_expectationMin_, l_marginalMax_, l_marginalMin_, l_marginalSets_, l_modal_, l_optimalNet_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMin_, gum::credal::InferenceEngine< GUM_SCALAR >::oldMarginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::oldMarginalMin_, workingSet_, and workingSetE_.
|
inherited |
Insert evidence from Property.
| evidence | The on nodes Property containing likelihoods. |
Definition at line 277 of file inferenceEngine_tpl.h.
References credalNet_, evidence_, and GUM_SHOWERROR.
|
inherited |
Insert evidence from map.
| eviMap | The map variable name - likelihood. |
Definition at line 251 of file inferenceEngine_tpl.h.
References credalNet_, evidence_, and GUM_SHOWERROR.
|
virtualinherited |
Insert evidence from file.
| path | The path to the evidence file. |
Reimplemented in gum::credal::CNLoopyPropagation< GUM_SCALAR >, and gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >.
Definition at line 299 of file inferenceEngine_tpl.h.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::insertEvidenceFile(), and gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::insertEvidenceFile().
|
inherited |
Insert variables modalities from map to compute expectations.
| modals | The map variable name - modalities. |
Definition at line 215 of file inferenceEngine_tpl.h.
References credalNet_, GUM_SHOWERROR, and modal_.
|
inherited |
Insert variables modalities from file to compute expectations.
| path | The path to the modalities file. |
Definition at line 168 of file inferenceEngine_tpl.h.
|
inherited |
Insert query variables and states from Property.
| query | The on nodes Property containing queried variables states. |
Definition at line 364 of file inferenceEngine_tpl.h.
References query_.
|
inherited |
Insert query variables states from file.
| path | The path to the query file. |
Definition at line 381 of file inferenceEngine_tpl.h.
References GUM_ERROR.
|
overridevirtualinherited |
Returns true if stopping criterion on epsilon is enabled, false otherwise.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 81 of file approximationScheme_inl.h.
References enabled_eps_.
|
overridevirtualinherited |
Returns true if stopping criterion on max iterations is enabled, false otherwise.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 122 of file approximationScheme_inl.h.
References enabled_max_iter_.
|
overridevirtualinherited |
Returns true if stopping criterion on timeout is enabled, false otherwise.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 146 of file approximationScheme_inl.h.
References enabled_max_time_.
|
overridevirtualinherited |
Returns true if stopping criterion on epsilon rate is enabled, false otherwise.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 102 of file approximationScheme_inl.h.
References enabled_min_rate_eps_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::computeKL_().
|
virtualinherited |
indicates whether the class containing this ThreadNumberManager set its own number of threads
Implements gum::IThreadNumberManager.
Referenced by gum::learning::IBNLearner::createParamEstimator_(), and gum::learning::IBNLearner::createScore_().
|
pure virtual |
To be redefined by each credal net algorithm.
Starts the inference.
Implements gum::credal::InferenceEngine< GUM_SCALAR >.
Implemented in gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >.
|
inherited |
Get the upper marginals of a given node id.
| id | The node id which upper marginals we want. |
Definition at line 477 of file inferenceEngine_tpl.h.
Referenced by marginalMax().
|
inherited |
Get the upper marginals of a given variable name.
| varName | The variable name which upper marginals we want. |
Definition at line 462 of file inferenceEngine_tpl.h.
References credalNet_, and marginalMax().
|
inherited |
Get the lower marginals of a given node id.
| id | The node id which lower marginals we want. |
Definition at line 467 of file inferenceEngine_tpl.h.
References credalNet_, and marginalMin_.
Referenced by marginalMin().
|
inherited |
Get the lower marginals of a given variable name.
| varName | The variable name which lower marginals we want. |
Definition at line 456 of file inferenceEngine_tpl.h.
References credalNet_, and marginalMin().
|
overridevirtualinherited |
Returns the criterion on number of iterations.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 112 of file approximationScheme_inl.h.
References max_iter_.
|
overridevirtualinherited |
Returns the timeout (in seconds).
Implements gum::IApproximationSchemeConfiguration.
Definition at line 133 of file approximationScheme_inl.h.
References max_time_.
|
inherited |
Returns the approximation scheme message.
Definition at line 59 of file IApproximationSchemeConfiguration_inl.h.
References Continue, Epsilon, epsilon(), Limit, maxIter(), maxTime(), minEpsilonRate(), Rate, stateApproximationScheme(), Stopped, TimeLimit, and Undefined.
Referenced by gum::credal::InferenceEngine< GUM_SCALAR >::getApproximationSchemeMsg(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::stateApproximationScheme().
|
overridevirtualinherited |
Returns the value of the minimal epsilon rate.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 92 of file approximationScheme_inl.h.
References min_rate_eps_.
|
overridevirtualinherited |
Returns the number of iterations.
| OperationNotAllowed | Raised if the scheme did not perform. |
Implements gum::IApproximationSchemeConfiguration.
Definition at line 169 of file approximationScheme_inl.h.
References current_step_, GUM_ERROR, stateApproximationScheme(), and gum::IApproximationSchemeConfiguration::Undefined.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::computeKL_().
|
protected |
Fusion of threads optimal IBayesNet.
Definition at line 735 of file multipleInferenceEngine_tpl.h.
References gum::credal::InferenceEngine< GUM_SCALAR >::dbnOpt_, gum::credal::InferenceEngine< GUM_SCALAR >::evidence_, l_marginalMax_, l_marginalMin_, l_optimalNet_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMin_, optFusion_(), and workingSet_.
Referenced by optFusion_().
|
overridevirtualinherited |
Returns the period size.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 155 of file approximationScheme_inl.h.
References period_size_.
|
inherited |
Returns the remaining burn in.
Definition at line 212 of file approximationScheme_inl.h.
References burn_in_, and current_step_.
|
inherited |
Get the current independence status.
True if repetitive, False otherwise. Definition at line 142 of file inferenceEngine_tpl.h.
References repetitiveInd_.
|
protectedinherited |
Initialize t0_ and t1_ clusters.
Definition at line 801 of file inferenceEngine_tpl.h.
References credalNet_, GUM_ERROR, t0_, t1_, and timeSteps_.
Referenced by setRepetitiveInd().
|
inherited |
Saves expectations to file.
| path | The path to the file to be used. |
Definition at line 578 of file inferenceEngine_tpl.h.
References dynamicExpMin_.
|
inherited |
Saves marginals to file.
| path | The path to the file to be used. |
Definition at line 555 of file inferenceEngine_tpl.h.
References GUM_ERROR.
|
inherited |
Saves vertices to file.
| path | The path to the file to be used. |
Definition at line 648 of file inferenceEngine_tpl.h.
References credalNet_, GUM_ERROR, and marginalSets_.
|
overridevirtualinherited |
Given that we approximate f(t), stopping criterion on |f(t+1)-f(t)|.
If the criterion was disabled it will be enabled.
| eps | The new epsilon value. |
| OutOfBounds | Raised if eps < 0. |
Implements gum::IApproximationSchemeConfiguration.
Reimplemented in gum::learning::EMApproximationScheme.
Definition at line 63 of file approximationScheme_inl.h.
References enabled_eps_, eps_, and GUM_ERROR.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsSampling< GUM_SCALAR >::GibbsSampling(), gum::learning::GreedyHillClimbing::GreedyHillClimbing(), gum::SamplingInference< GUM_SCALAR >::SamplingInference(), and gum::learning::EMApproximationScheme::setEpsilon().
|
overridevirtualinherited |
Stopping criterion on number of iterations.
If the criterion was disabled it will be enabled.
| max | The maximum number of iterations. |
| OutOfBounds | Raised if max <= 1. |
Implements gum::IApproximationSchemeConfiguration.
Definition at line 105 of file approximationScheme_inl.h.
References enabled_max_iter_, GUM_ERROR, and max_iter_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), and gum::SamplingInference< GUM_SCALAR >::SamplingInference().
|
overridevirtualinherited |
Stopping criterion on timeout.
If the criterion was disabled it will be enabled.
| timeout | The timeout value in seconds. |
| OutOfBounds | Raised if timeout <= 0.0. |
Implements gum::IApproximationSchemeConfiguration.
Definition at line 126 of file approximationScheme_inl.h.
References enabled_max_time_, GUM_ERROR, and max_time_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), and gum::SamplingInference< GUM_SCALAR >::SamplingInference().
|
overridevirtualinherited |
Given that we approximate f(t), stopping criterion on d/dt(|f(t+1)-f(t)|).
If the criterion was disabled it will be enabled
| rate | The minimal epsilon rate. |
| OutOfBounds | if rate<0 |
Implements gum::IApproximationSchemeConfiguration.
Reimplemented in gum::learning::EMApproximationScheme.
Definition at line 84 of file approximationScheme_inl.h.
References enabled_min_rate_eps_, GUM_ERROR, and min_rate_eps_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsSampling< GUM_SCALAR >::GibbsSampling(), gum::SamplingInference< GUM_SCALAR >::SamplingInference(), and gum::learning::EMApproximationScheme::setMinEpsilonRate().
|
virtualinherited |
sets the number max of threads to be used by the class containing this ThreadNumberManager
| nb | the number of threads to be used. If this number is set to 0, then it is defaulted to aGrUM's number of threads |
Implements gum::IThreadNumberManager.
Reimplemented in gum::learning::IBNLearner, gum::learning::RecordCounter, gum::ScheduledInference, and gum::SchedulerParallel.
Referenced by gum::learning::IBNLearner::setNumberOfThreads(), and gum::ScheduledInference::setNumberOfThreads().
|
overridevirtualinherited |
How many samples between two stopping is enable.
| p | The new period value. |
| OutOfBounds | Raised if p < 1. |
Implements gum::IApproximationSchemeConfiguration.
Definition at line 149 of file approximationScheme_inl.h.
References GUM_ERROR, and period_size_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), and gum::SamplingInference< GUM_SCALAR >::SamplingInference().
|
inherited |
| repetitive | True if repetitive independence is to be used, false otherwise. Only usefull with dynamic networks. |
Definition at line 133 of file inferenceEngine_tpl.h.
References repetitiveInd_, and repetitiveInit_().
|
overridevirtualinherited |
Set the verbosity on (true) or off (false).
| v | If true, then verbosity is turned on. |
Implements gum::IApproximationSchemeConfiguration.
Definition at line 158 of file approximationScheme_inl.h.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), gum::GibbsBNdistance< GUM_SCALAR >::GibbsBNdistance(), and gum::SamplingInference< GUM_SCALAR >::SamplingInference().
|
inherited |
Returns true if we are at the beginning of a period (compute error is mandatory).
Definition at line 199 of file approximationScheme_inl.h.
References burn_in_, and current_step_.
|
overridevirtualinherited |
Returns the approximation scheme state.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 164 of file approximationScheme_inl.h.
References current_state_.
Referenced by history(), and nbrIterations().
|
inherited |
Stop the approximation scheme.
Definition at line 221 of file approximationScheme_inl.h.
Referenced by gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), and gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceNodeToNeighbours_().
|
privateinherited |
Stop the scheme given a new state.
| new_state | The scheme new state. |
Definition at line 301 of file approximationScheme_inl.h.
References gum::IApproximationSchemeConfiguration::Continue, current_state_, and gum::IApproximationSchemeConfiguration::Undefined.
Referenced by gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::disableMaxIter(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::disableMaxTime(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::isEnabledMaxIter(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::maxTime(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::setPeriodSize().
|
inherited |
True if optimal bayes net are stored for each variable and each modality, False otherwise. Definition at line 158 of file inferenceEngine_tpl.h.
References storeBNOpt_.
|
inherited |
| value | True if optimal Bayesian networks are to be stored for each variable and each modality. |
Definition at line 121 of file inferenceEngine_tpl.h.
References storeBNOpt_.
|
inherited |
Get the number of iterations without changes used to stop some algorithms.
True if vertice are stored, False otherwise. Definition at line 153 of file inferenceEngine_tpl.h.
References storeVertices_.
|
inherited |
| value | True if vertices are to be stored, false otherwise. |
Definition at line 126 of file inferenceEngine_tpl.h.
References initMarginalSets_(), and storeVertices_.
|
inherited |
Print all nodes marginals to standart output.
Definition at line 622 of file inferenceEngine_tpl.h.
References credalNet_, marginalMax_, marginalMin_, and query_.
|
inherited |
Update the scheme w.r.t the new error and increment steps.
| incr | The new increment steps. |
Definition at line 208 of file approximationScheme_inl.h.
References current_step_.
Referenced by gum::GibbsBNdistance< GUM_SCALAR >::computeKL_(), gum::learning::GreedyHillClimbing::learnStructure(), gum::learning::LocalSearchWithTabuList::learnStructure(), gum::SamplingInference< GUM_SCALAR >::loopApproxInference_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceByOrderedArcs_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceByRandomOrder_(), and gum::credal::CNLoopyPropagation< GUM_SCALAR >::makeInferenceNodeToNeighbours_().
|
inlineprotectedinherited |
Given a node id and one of it's possible vertex, update it's credal set.
To maximise efficiency, don't pass a vertex we know is inside the polytope (i.e. not at an extreme value for any modality)
| id | The id of the node to be updated |
| vertex | A (tensor) vertex of the node credal set |
| elimRedund | remove redundant vertex (inside a facet) |
Definition at line 934 of file inferenceEngine_tpl.h.
References marginalSets_.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::computeExpectations_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::verticesFusion_().
|
inlineprotectedinherited |
Given a node id and one of it's possible vertex obtained during inference, update this node lower and upper expectations.
| id | The id of the node to be updated |
| vertex | A (tensor) vertex of the node credal set |
Definition at line 912 of file inferenceEngine_tpl.h.
References credalNet_, expectationMax_, expectationMin_, and modal_.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::computeExpectations_().
|
inlineprotected |
Fusion of threads marginals.
Definition at line 293 of file multipleInferenceEngine_tpl.h.
References gum::threadsSTL::ThreadExecutor::execute(), l_marginalMax_, l_marginalMin_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::marginalMin_, gum::threadsSTL::ThreadExecutor::nbRunningThreadsExecutors(), gum::credal::InferenceEngine< GUM_SCALAR >::threadRanges_, and updateMarginals_().
Referenced by updateMarginals_().
|
protected |
Update old marginals (from current marginals).
Call this once to initialize old marginals (after burn-in for example) and then use computeEpsilon_ which does the same job but compute epsilon too.
Definition at line 473 of file multipleInferenceEngine_tpl.h.
References gum::threadsOMP::getThreadNumber(), l_marginalMax_, l_marginalMin_, gum::credal::InferenceEngine< GUM_SCALAR >::oldMarginalMax_, gum::credal::InferenceEngine< GUM_SCALAR >::oldMarginalMin_, updateOldMarginals_(), and workingSet_.
Referenced by updateOldMarginals_().
|
inlineprotected |
Update thread information (marginals, expectations, IBayesNet, vertices) for a given node id.
| this_thread | the id of the thread executing this method |
| id | The id of the node to be updated. |
| vertex | The vertex. |
| elimRedund | true if redundancy elimination is to be performed, false otherwise and by default. |
True if the IBayesNet is kept (for now), False otherwise. Definition at line 115 of file multipleInferenceEngine_tpl.h.
References gum::credal::InferenceEngine< GUM_SCALAR >::evidence_, l_expectationMax_, l_expectationMin_, l_marginalMin_, l_modal_, l_optimalNet_, gum::credal::InferenceEngine< GUM_SCALAR >::storeBNOpt_, gum::credal::InferenceEngine< GUM_SCALAR >::storeVertices_, and workingSet_.
|
overridevirtualinherited |
Returns true if verbosity is enabled.
Implements gum::IApproximationSchemeConfiguration.
Definition at line 160 of file approximationScheme_inl.h.
References verbosity_.
Referenced by ApproximationScheme(), and gum::learning::EMApproximationScheme::EMApproximationScheme().
|
inherited |
Get the vertice of a given node id.
| id | The node id which vertice we want. |
Definition at line 550 of file inferenceEngine_tpl.h.
References marginalSets_.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::computeExpectations_().
|
protected |
Definition at line 501 of file multipleInferenceEngine_tpl.h.
References gum::dispatchRangeToThreads(), gum::threadsSTL::ThreadExecutor::execute(), gum::ThreadNumberManager::getNumberOfThreads(), l_marginalMin_, l_marginalSets_, gum::threadsSTL::ThreadExecutor::nbRunningThreadsExecutors(), gum::credal::InferenceEngine< GUM_SCALAR >::storeVertices_, gum::credal::InferenceEngine< GUM_SCALAR >::updateCredalSets_(), verticesFusion_(), and workingSet_.
Referenced by verticesFusion_().
|
privateinherited |
the max number of threads used by the class
Definition at line 126 of file threadNumberManager.h.
|
protectedinherited |
Number of iterations before checking stopping criteria.
Definition at line 423 of file approximationScheme.h.
Referenced by ApproximationScheme(), gum::GibbsBNdistance< GUM_SCALAR >::burnIn(), gum::GibbsSampling< GUM_SCALAR >::burnIn(), remainingBurnIn(), gum::GibbsBNdistance< GUM_SCALAR >::setBurnIn(), gum::GibbsSampling< GUM_SCALAR >::setBurnIn(), and startOfPeriod().
|
protectedinherited |
A pointer to the Credal Net used.
Definition at line 84 of file inferenceEngine.h.
Referenced by InferenceEngine(), addEvidence(), addEvidence(), addEvidence(), addEvidence(), addEvidence(), addEvidence(), credalNet(), dynamicExpectations_(), expectationMax(), expectationMin(), initExpectations_(), initMarginals_(), initMarginalSets_(), insertEvidence(), insertEvidence(), insertModals(), marginalMax(), marginalMin(), marginalMin(), repetitiveInit_(), saveVertices(), toString(), and updateExpectations_().
|
protectedinherited |
Current epsilon.
Definition at line 378 of file approximationScheme.h.
Referenced by initApproximationScheme().
|
protectedinherited |
Current rate.
Definition at line 384 of file approximationScheme.h.
Referenced by initApproximationScheme().
|
protectedinherited |
The current state.
Definition at line 393 of file approximationScheme.h.
Referenced by ApproximationScheme(), initApproximationScheme(), stateApproximationScheme(), and stopScheme_().
|
protectedinherited |
The current step.
Definition at line 387 of file approximationScheme.h.
Referenced by initApproximationScheme(), gum::learning::Miic::initiation_(), gum::learning::SimpleMiic::initiation_(), gum::learning::Miic::iteration_(), gum::learning::SimpleMiic::iteration_(), gum::learning::Miic::learnMixedStructure(), gum::learning::SimpleMiic::learnMixedStructure(), gum::learning::Miic::learnSkeleton(), nbrIterations(), gum::learning::SimpleMiic::orientationLatents_(), gum::learning::Miic::orientationMiic_(), gum::learning::SimpleMiic::orientationMiic_(), remainingBurnIn(), startOfPeriod(), and updateApproximationScheme().
|
protectedinherited |
Object used to efficiently store optimal bayes net during inference, for some algorithms.
Definition at line 158 of file inferenceEngine.h.
Referenced by InferenceEngine(), getVarMod2BNsMap(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::optFusion_().
|
protectedinherited |
Upper dynamic expectations.
If the network if not dynamic it's content is the same as expectationMax_.
Definition at line 111 of file inferenceEngine.h.
Referenced by dynamicExpectations_(), dynamicExpMax(), and eraseAllEvidence().
|
protectedinherited |
Lower dynamic expectations.
If the network is not dynamic it's content is the same as expectationMin_.
Definition at line 108 of file inferenceEngine.h.
Referenced by dynamicExpectations_(), eraseAllEvidence(), and saveExpectations().
|
protectedinherited |
If true, the threshold convergence is enabled.
Definition at line 402 of file approximationScheme.h.
Referenced by ApproximationScheme(), disableEpsilon(), enableEpsilon(), isEnabledEpsilon(), and setEpsilon().
|
protectedinherited |
If true, the maximum iterations stopping criterion is enabled.
Definition at line 420 of file approximationScheme.h.
Referenced by ApproximationScheme(), disableMaxIter(), enableMaxIter(), isEnabledMaxIter(), and setMaxIter().
|
protectedinherited |
If true, the timeout is enabled.
Definition at line 414 of file approximationScheme.h.
Referenced by ApproximationScheme(), continueApproximationScheme(), disableMaxTime(), enableMaxTime(), isEnabledMaxTime(), and setMaxTime().
|
protectedinherited |
If true, the minimal threshold for epsilon rate is enabled.
Definition at line 408 of file approximationScheme.h.
Referenced by ApproximationScheme(), disableMinEpsilonRate(), enableMinEpsilonRate(), isEnabledMinEpsilonRate(), and setMinEpsilonRate().
|
protectedinherited |
Threshold for convergence.
Definition at line 399 of file approximationScheme.h.
Referenced by ApproximationScheme(), epsilon(), and setEpsilon().
|
protectedinherited |
Holds observed variables states.
Definition at line 117 of file inferenceEngine.h.
Referenced by addEvidence(), eraseAllEvidence(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::initialize_(), insertEvidence(), insertEvidence(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::msgL_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::msgP_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::optFusion_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::refreshLMsPIs_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::saveInference(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::updateMarginals_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::updateMarginals_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateThread_().
|
protectedinherited |
Upper expectations, if some variables modalities were inserted.
Definition at line 104 of file inferenceEngine.h.
Referenced by dynamicExpectations_(), expectationMax(), expectationMax(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::expFusion_(), initExpectations_(), and updateExpectations_().
|
protectedinherited |
Lower expectations, if some variables modalities were inserted.
Definition at line 101 of file inferenceEngine.h.
Referenced by dynamicExpectations_(), expectationMin(), expectationMin(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::expFusion_(), initExpectations_(), and updateExpectations_().
|
protected |
the generators used for computing random values
Definition at line 141 of file multipleInferenceEngine.h.
Referenced by initThreadsData_().
|
protectedinherited |
The scheme history, used only if verbosity == true.
Definition at line 396 of file approximationScheme.h.
|
protected |
Threads clusters.
Definition at line 127 of file multipleInferenceEngine.h.
Referenced by gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_mcThreadDataCopy_(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_verticesSampling_(), eraseAllEvidence(), and initThreadsData_().
|
protected |
Threads evidence.
Definition at line 125 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence().
|
protected |
Threads upper expectations, one per thread.
Definition at line 119 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), expFusion_(), initThreadsData_(), and updateThread_().
|
protected |
Threads lower expectations, one per thread.
Definition at line 117 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), expFusion_(), initThreadsData_(), and updateThread_().
|
protected |
Threads BNInferenceEngine.
Definition at line 136 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence().
|
protected |
Threads upper marginals, one per thread.
Definition at line 115 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), initThreadsData_(), optFusion_(), updateMarginals_(), and updateOldMarginals_().
|
protected |
Threads lower marginals, one per thread.
Definition at line 113 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), initThreadsData_(), optFusion_(), updateMarginals_(), updateOldMarginals_(), updateThread_(), and verticesFusion_().
|
protected |
Threads vertices.
Definition at line 123 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), initThreadsData_(), and verticesFusion_().
|
protected |
Threads modalities.
Definition at line 121 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), expFusion_(), initThreadsData_(), and updateThread_().
|
protected |
Threads optimal IBayesNet.
Definition at line 138 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), initThreadsData_(), optFusion_(), and updateThread_().
|
protectedinherited |
Last epsilon value.
Definition at line 381 of file approximationScheme.h.
|
protectedinherited |
Upper marginals.
Definition at line 94 of file inferenceEngine.h.
Referenced by computeEpsilon_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::computeEpsilon_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::computeExpectations_(), initMarginals_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::initThreadsData_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::optFusion_(), toString(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::updateMarginals_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateMarginals_().
|
protectedinherited |
Lower marginals.
Definition at line 92 of file inferenceEngine.h.
Referenced by computeEpsilon_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::computeEpsilon_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::computeExpectations_(), initMarginals_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::initThreadsData_(), marginalMin(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::optFusion_(), toString(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::updateMarginals_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateMarginals_().
|
protectedinherited |
Credal sets vertices, if enabled.
Definition at line 97 of file inferenceEngine.h.
Referenced by gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::expFusion_(), initMarginalSets_(), saveVertices(), updateCredalSets_(), and vertices().
|
protectedinherited |
The maximum iterations.
Definition at line 417 of file approximationScheme.h.
Referenced by ApproximationScheme(), maxIter(), and setMaxIter().
|
protectedinherited |
The timeout.
Definition at line 411 of file approximationScheme.h.
Referenced by ApproximationScheme(), maxTime(), and setMaxTime().
|
protectedinherited |
Threshold for the epsilon rate.
Definition at line 405 of file approximationScheme.h.
Referenced by ApproximationScheme(), minEpsilonRate(), and setMinEpsilonRate().
|
protectedinherited |
Variables modalities used to compute expectations.
Definition at line 114 of file inferenceEngine.h.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::computeExpectations_(), dynamicExpectations_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::expFusion_(), initExpectations_(), insertModals(), insertModalsFile(), and updateExpectations_().
|
protectedinherited |
Old upper marginals used to compute epsilon.
Definition at line 89 of file inferenceEngine.h.
Referenced by computeEpsilon_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::computeEpsilon_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::initialize_(), initMarginals_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::initThreadsData_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateOldMarginals_().
|
protectedinherited |
Old lower marginals used to compute epsilon.
Definition at line 87 of file inferenceEngine.h.
Referenced by computeEpsilon_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::computeEpsilon_(), gum::credal::CNLoopyPropagation< GUM_SCALAR >::initialize_(), initMarginals_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::initThreadsData_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateOldMarginals_().
Progression, error and time.
Definition at line 80 of file IApproximationSchemeConfiguration.h.
Referenced by gum::learning::IBNLearner::distributeProgress(), gum::learning::Miic::initiation_(), gum::learning::SimpleMiic::initiation_(), gum::learning::Miic::iteration_(), gum::learning::SimpleMiic::iteration_(), gum::learning::SimpleMiic::orientationLatents_(), gum::learning::Miic::orientationMiic_(), and gum::learning::SimpleMiic::orientationMiic_().
|
inherited |
Criteria messageApproximationScheme.
Definition at line 83 of file IApproximationSchemeConfiguration.h.
Referenced by gum::learning::IBNLearner::distributeStop().
|
protectedinherited |
Checking criteria frequency.
Definition at line 426 of file approximationScheme.h.
Referenced by ApproximationScheme(), periodSize(), and setPeriodSize().
|
protectedinherited |
Holds the query nodes states.
Definition at line 119 of file inferenceEngine.h.
Referenced by eraseAllEvidence(), insertQuery(), and toString().
|
protectedinherited |
True if using repetitive independence ( dynamic network only ), False otherwise.
False by default.
Definition at line 143 of file inferenceEngine.h.
Referenced by gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::CNMonteCarloSampling(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_verticesSampling_(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::makeInference(), repetitiveInd(), and setRepetitiveInd().
|
protectedinherited |
Iterations limit stopping rule used by some algorithms such as CNMonteCarloSampling.
The algorithms stops if no changes occured within 1000 iterations by default. int iterStop_;
True is optimal bayes net are stored, for each variable and each modality, False otherwise. Not all algorithms offers this option. False by default.
Definition at line 153 of file inferenceEngine.h.
Referenced by gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::CNMonteCarloSampling(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_mcThreadDataCopy_(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_verticesSampling_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::eraseAllEvidence(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::makeInference(), storeBNOpt(), storeBNOpt(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, LazyPropagation< GUM_SCALAR > >::updateMarginals_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateThread_().
|
protectedinherited |
True if credal sets vertices are stored, False otherwise.
False by default.
Definition at line 139 of file inferenceEngine.h.
Referenced by gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::CNMonteCarloSampling(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_mcThreadDataCopy_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::eraseAllEvidence(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::expFusion_(), initMarginalSets_(), gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::makeInference(), storeVertices(), storeVertices(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateThread_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::verticesFusion_().
|
protectedinherited |
Clusters of nodes used with dynamic networks.
Any node key in t0_ is present at \( t=0 \) and any node belonging to the node set of this key share the same CPT than the key. Used for sampling with repetitive independence.
Definition at line 127 of file inferenceEngine.h.
Referenced by gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_mcThreadDataCopy_(), getT0Cluster(), and repetitiveInit_().
|
protectedinherited |
Clusters of nodes used with dynamic networks.
Any node key in t1_ is present at \( t=1 \) and any node belonging to the node set of this key share the same CPT than the key. Used for sampling with repetitive independence.
Definition at line 134 of file inferenceEngine.h.
Referenced by gum::credal::CNMonteCarloSampling< GUM_SCALAR, BNInferenceEngine >::_mcThreadDataCopy_(), getT1Cluster(), and repetitiveInit_().
|
protectedinherited |
Definition at line 180 of file inferenceEngine.h.
Referenced by gum::credal::CNLoopyPropagation< GUM_SCALAR >::enum_combi_(), and gum::credal::CNLoopyPropagation< GUM_SCALAR >::enum_combi_().
|
protectedinherited |
the ranges of elements of marginalMin_ and marginalMax_ processed by each thread
these ranges are stored into a vector of pairs (NodeId, Idx). For thread number i, the pair at index i is the beginning of the range that the thread will have to process: this is the part of the marginal distribution vector of node NodeId starting at index Idx. The pair at index i+1 is the end of this range (not included).
Definition at line 170 of file inferenceEngine.h.
Referenced by computeEpsilon_(), gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::computeEpsilon_(), displatchMarginalsToThreads_(), and gum::credal::MultipleInferenceEngine< GUM_SCALAR, BNInferenceEngine >::updateMarginals_().
|
protectedinherited |
The timer.
Definition at line 390 of file approximationScheme.h.
Referenced by continueApproximationScheme(), currentTime(), gum::learning::Miic::initiation_(), gum::learning::SimpleMiic::initiation_(), gum::learning::Miic::iteration_(), gum::learning::SimpleMiic::iteration_(), gum::learning::Miic::learnMixedStructure(), gum::learning::SimpleMiic::learnMixedStructure(), gum::learning::Miic::learnSkeleton(), gum::learning::SimpleMiic::orientationLatents_(), gum::learning::Miic::orientationMiic_(), and gum::learning::SimpleMiic::orientationMiic_().
|
protectedinherited |
The number of time steps of this network (only usefull for dynamic networks).
Definition at line 177 of file inferenceEngine.h.
Referenced by repetitiveInit_().
|
protectedinherited |
If true, verbosity is enabled.
Definition at line 429 of file approximationScheme.h.
Referenced by ApproximationScheme(), and verbosity().
|
protected |
Threads IBayesNet.
Definition at line 131 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), expFusion_(), initThreadsData_(), optFusion_(), updateOldMarginals_(), updateThread_(), and verticesFusion_().
|
protected |
Threads evidence.
Definition at line 133 of file multipleInferenceEngine.h.
Referenced by eraseAllEvidence(), and initThreadsData_().