![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
This class is an implementation of the Structured Value Elimination algorithm on PRM<GUM_SCALAR>. More...
#include <agrum/PRM/SVED.h>
Public Types | |
| using | EMap = NodeProperty< const Tensor< GUM_SCALAR >* > |
| Code alias. | |
| using | EMapIterator = typename NodeProperty< const Tensor< GUM_SCALAR >* >::iterator_safe |
| Code alias. | |
| using | EMapConstIterator |
| Code alias. | |
Public Member Functions | |
Constructors & destructor. | |
| SVED (const PRM< GUM_SCALAR > &prm, const PRMSystem< GUM_SCALAR > &model) | |
| Default Constructor. | |
| ~SVED () override | |
| Destructor. | |
Getters & setters. | |
| std::string | name () const override |
| Returns the name of the current inference algorithm. | |
Query methods. | |
| void | posterior (const Chain &chain, Tensor< GUM_SCALAR > &m) |
| Compute the posterior of the formal attribute pointed by chain and stores it in m. | |
| void | joint (const std::vector< Chain > &chains, Tensor< GUM_SCALAR > &j) |
| Compute the joint probability of the formals attributes pointed by chains and stores it in m. | |
Evidence handling. | |
| EMap & | evidence (const PRMInstance< GUM_SCALAR > &i) |
| Returns EMap of evidences over i. | |
| EMap & | evidence (const PRMInstance< GUM_SCALAR > *i) |
| Returns EMap of evidences over i. | |
| const EMap & | evidence (const PRMInstance< GUM_SCALAR > &i) const |
| Returns EMap of evidences over i. | |
| const EMap & | evidence (const PRMInstance< GUM_SCALAR > *i) const |
| Returns EMap of evidences over i. | |
| bool | hasEvidence (const PRMInstance< GUM_SCALAR > &i) const |
| Returns true if i has evidence. | |
| bool | hasEvidence (const PRMInstance< GUM_SCALAR > *i) const |
| Returns EMap of evidences over i. | |
| bool | hasEvidence (const Chain &chain) const |
| Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a. | |
| bool | hasEvidence () const |
| Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a. | |
| void | addEvidence (const Chain &chain, const Tensor< GUM_SCALAR > &p) |
| Add an evidence to the given instance's elt. | |
| void | removeEvidence (const Chain &chain) |
| Remove evidence on the given instance's elt. | |
| void | clearEvidence () |
| Remove all evidences. | |
Protected Attributes | |
Protected members. | |
| PRM< GUM_SCALAR > const * | prm_ |
| The PRM<GUM_SCALAR> on which inference is done. | |
| PRMSystem< GUM_SCALAR > const * | sys_ |
| The Model on which inference is done. | |
Private Types | |
| using | BucketSet = Set< Tensor< GUM_SCALAR >* > |
| Code alias. | |
| using | BucketSetIterator = typename Set< Tensor< GUM_SCALAR >* >::iterator_safe |
| using | ArraySetIterator = typename Set< MultiDimArray< GUM_SCALAR >* >::iterator_safe |
Private Member Functions | |
Inference sub methods. | |
| void | _eliminateNodes_ (const PRMInstance< GUM_SCALAR > *query, NodeId id, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateNodesDownward_ (const PRMInstance< GUM_SCALAR > *from, const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash, List< const PRMInstance< GUM_SCALAR > * > &elim_list, Set< const PRMInstance< GUM_SCALAR > * > &ignore) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateNodesUpward_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash, List< const PRMInstance< GUM_SCALAR > * > &elim_list, Set< const PRMInstance< GUM_SCALAR > * > &ignore) |
| Returns true if second can be eliminated before first. | |
| void | _eliminateNodesWithEvidence_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| void | _insertLiftedNodes_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| bool | _checkElimOrder_ (const PRMInstance< GUM_SCALAR > *first, const PRMInstance< GUM_SCALAR > *second) |
| Returns true if second can be eliminated before first. | |
| void | _initElimOrder_ () |
| Returns true if second can be eliminated before first. | |
| void | _insertEvidence_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &pool) |
| Returns true if second can be eliminated before first. | |
| std::vector< NodeId > & | _getElimOrder_ (const PRMClass< GUM_SCALAR > &c) |
| Returns true if second can be eliminated before first. | |
| Tensor< GUM_SCALAR > * | _getAggTensor_ (const PRMInstance< GUM_SCALAR > *i, const PRMAggregate< GUM_SCALAR > *agg) |
| Returns true if second can be eliminated before first. | |
| void | _initLiftedNodes_ (const PRMInstance< GUM_SCALAR > *i, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| void | _initReqSets_ (const PRMInstance< GUM_SCALAR > *i) |
| Returns true if second can be eliminated before first. | |
| Set< NodeId > & | _getAttrSet_ (const PRMInstance< GUM_SCALAR > *i) |
| Returns true if second can be eliminated before first. | |
| Set< NodeId > & | _getSCSet_ (const PRMInstance< GUM_SCALAR > *i) |
| Returns true if second can be eliminated before first. | |
| void | _reduceElimList_ (const PRMInstance< GUM_SCALAR > *i, List< const PRMInstance< GUM_SCALAR > * > &elim_list, List< const PRMInstance< GUM_SCALAR > * > &reduced_list, Set< const PRMInstance< GUM_SCALAR > * > &ignore, BucketSet &pool, BucketSet &trash) |
| Returns true if second can be eliminated before first. | |
| std::string | _trim_ (std::string_view s) |
| Returns true if second can be eliminated before first. | |
Private Attributes | |
| HashTable< const PRMClass< GUM_SCALAR > *, std::vector< NodeId > * > | _elim_orders_ |
| HashTable< const Set< NodeId > *, BucketSet * > | _lifted_pools_ |
| The Set<NodeId> returned by StructuredBayesBall<GUM_SCALAR> is unique for each family of instances with the same requisite set (thus the same lifted tensors). | |
| Sequence< std::string > * | _class_elim_order_ |
| StructuredBayesBall< GUM_SCALAR > | _bb_ |
| HashTable< const Set< NodeId > *, std::pair< Set< NodeId > *, Set< NodeId > * > > | _req_set_ |
| First pair -> requisite Attributes Second pair -> requisite SlotChains. | |
Query methods. | |
| using | Chain = typename PRMInference< GUM_SCALAR >::Chain |
| Code alias. | |
| void | evidenceAdded_ (const Chain &chain) override |
| See PRMInference::evidenceAdded_(). | |
| void | evidenceRemoved_ (const Chain &chain) override |
| See PRMInference::evidenceRemoved_(). | |
| void | posterior_ (const Chain &chain, Tensor< GUM_SCALAR > &m) override |
| See PRMInference::posterior_(). | |
| void | joint_ (const std::vector< Chain > &queries, Tensor< GUM_SCALAR > &j) override |
| See PRMInference::joint_(). | |
Private evidence handling methods and members. | |
| using | EvidenceIterator |
| Code alias. | |
| using | EvidenceConstIterator |
| Code alias. | |
| HashTable< const PRMInstance< GUM_SCALAR > *, EMap * > | _evidences_ |
| Mapping of evidence over PRMInstance<GUM_SCALAR>'s nodes. | |
| EMap & | _EMap_ (const PRMInstance< GUM_SCALAR > *i) |
| Private getter over evidences, if necessary creates an EMap for i. | |
This class is an implementation of the Structured Value Elimination algorithm on PRM<GUM_SCALAR>.
|
private |
|
private |
|
private |
|
protected |
|
inherited |
Code alias.
Definition at line 74 of file PRMInference.h.
|
inherited |
Code alias.
Definition at line 80 of file PRMInference.h.
|
inherited |
Code alias.
Definition at line 77 of file PRMInference.h.
|
privateinherited |
Code alias.
Definition at line 241 of file PRMInference.h.
|
privateinherited |
| gum::prm::SVED< GUM_SCALAR >::SVED | ( | const PRM< GUM_SCALAR > & | prm, |
| const PRMSystem< GUM_SCALAR > & | model ) |
Default Constructor.
Definition at line 485 of file SVED_tpl.h.
References gum::prm::PRMInference< GUM_SCALAR >::PRMInference(), SVED(), _bb_, and _class_elim_order_.
Referenced by SVED(), and ~SVED().
|
override |
Destructor.
Definition at line 56 of file SVED_tpl.h.
References SVED(), _class_elim_order_, and _elim_orders_.
|
private |
Returns true if second can be eliminated before first.
Definition at line 510 of file SVED_tpl.h.
References _class_elim_order_, _initElimOrder_(), _trim_(), and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _eliminateNodes_(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), and _reduceElimList_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 66 of file SVED_tpl.h.
References _bb_, _checkElimOrder_(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), _getAttrSet_(), _getSCSet_(), _insertEvidence_(), _reduceElimList_(), gum::prm::eliminateNodes(), gum::StaticTriangulation::eliminationOrder(), gum::List< Val >::empty(), gum::Set< Key >::exists(), gum::List< Val >::front(), gum::prm::PRMInstance< GUM_SCALAR >::get(), gum::prm::PRMInstance< GUM_SCALAR >::getInstances(), gum::prm::PRMInstance< GUM_SCALAR >::getRefAttr(), gum::prm::PRMInference< GUM_SCALAR >::hasEvidence(), gum::prm::PRMInstance< GUM_SCALAR >::hasRefAttr(), gum::List< Val >::insert(), gum::Set< Key >::insert(), gum::prm::InstanceBayesNet< GUM_SCALAR >::modalities(), gum::DAGmodel::moralGraph(), gum::List< Val >::popFront(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::variable().
Referenced by posterior_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 130 of file SVED_tpl.h.
References _bb_, _checkElimOrder_(), _elim_orders_, _eliminateNodesDownward_(), _eliminateNodesWithEvidence_(), _getAggTensor_(), _getAttrSet_(), _getSCSet_(), _insertLiftedNodes_(), gum::prm::eliminateNodes(), gum::List< Val >::empty(), gum::List< Val >::front(), gum::prm::PRMInstance< GUM_SCALAR >::getInstances(), gum::prm::PRMInstance< GUM_SCALAR >::getRefAttr(), gum::prm::PRMInference< GUM_SCALAR >::hasEvidence(), gum::prm::PRMInstance< GUM_SCALAR >::hasRefAttr(), gum::List< Val >::insert(), gum::Set< Key >::insert(), gum::List< Val >::popFront(), gum::prm::PRMInstance< GUM_SCALAR >::type(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::variable().
Referenced by _eliminateNodes_(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), and _reduceElimList_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 194 of file SVED_tpl.h.
References _bb_, _checkElimOrder_(), _elim_orders_, _eliminateNodesDownward_(), _eliminateNodesUpward_(), _eliminateNodesWithEvidence_(), _getAggTensor_(), _getAttrSet_(), _getSCSet_(), _insertLiftedNodes_(), gum::prm::eliminateNodes(), gum::prm::PRMInstance< GUM_SCALAR >::getInstances(), gum::prm::PRMInstance< GUM_SCALAR >::getRefAttr(), gum::prm::PRMInference< GUM_SCALAR >::hasEvidence(), gum::prm::PRMInstance< GUM_SCALAR >::hasRefAttr(), gum::Set< Key >::insert(), gum::prm::PRMInstance< GUM_SCALAR >::type(), and gum::prm::InstanceBayesNet< GUM_SCALAR >::variable().
Referenced by _eliminateNodes_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 257 of file SVED_tpl.h.
References _bb_, gum::prm::eliminateNode(), gum::StaticTriangulation::eliminationOrder(), gum::prm::PRMInference< GUM_SCALAR >::evidence(), gum::prm::PRMInstance< GUM_SCALAR >::get(), gum::Set< Key >::insert(), gum::prm::InstanceBayesNet< GUM_SCALAR >::modalities(), and gum::DAGmodel::moralGraph().
Referenced by _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
privateinherited |
Private getter over evidences, if necessary creates an EMap for i.
Definition at line 117 of file PRMInference_tpl.h.
References _evidences_.
Referenced by removeEvidence().
|
private |
Returns true if second can be eliminated before first.
Definition at line 521 of file SVED_tpl.h.
References gum::prm::PRMInstance< GUM_SCALAR >::get(), and gum::prm::PRMClassElement< GUM_SCALAR >::safeName().
Referenced by _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 537 of file SVED_tpl.h.
References _bb_, _initReqSets_(), and _req_set_.
Referenced by _eliminateNodes_(), _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 497 of file SVED_tpl.h.
References _elim_orders_.
|
private |
Returns true if second can be eliminated before first.
Definition at line 547 of file SVED_tpl.h.
References _bb_, _initReqSets_(), and _req_set_.
Referenced by _eliminateNodes_(), _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 362 of file SVED_tpl.h.
References _class_elim_order_, gum::ArcGraphPart::children(), gum::Set< Key >::contains(), gum::Set< Key >::empty(), gum::SequenceImplementation< Key, Gen >::exists(), gum::prm::ClassDependencyGraph< GUM_SCALAR >::get(), gum::SequenceImplementation< Key, Gen >::insert(), gum::Set< Key >::insert(), gum::prm::ClassDependencyGraph< GUM_SCALAR >::internalDag(), name(), gum::NodeGraphPart::nodes(), gum::ArcGraphPart::parents(), and gum::prm::PRMInference< GUM_SCALAR >::prm_.
Referenced by _checkElimOrder_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 300 of file SVED_tpl.h.
References _bb_, _elim_orders_, _lifted_pools_, gum::prm::PRMClassElementContainer< GUM_SCALAR >::containerDag(), gum::prm::eliminateNode(), gum::StaticTriangulation::eliminationOrder(), gum::Set< Key >::erase(), gum::Set< Key >::exists(), gum::prm::PRMClass< GUM_SCALAR >::get(), gum::Set< Key >::insert(), gum::prm::PRMClassElement< GUM_SCALAR >::isAggregate(), gum::prm::PRMClassElement< GUM_SCALAR >::isAttribute(), gum::prm::PRMClass< GUM_SCALAR >::isOutputNode(), gum::prm::ClassBayesNet< GUM_SCALAR >::modalities(), gum::DAGmodel::moralGraph(), gum::ArcGraphPart::parents(), gum::List< Val >::pushBack(), gum::Set< Key >::size(), and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _insertLiftedNodes_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 455 of file SVED_tpl.h.
References _bb_, _req_set_, GUM_ERROR, gum::Set< Key >::insert(), gum::prm::PRMClassElement< GUM_SCALAR >::prm_aggregate, gum::prm::PRMClassElement< GUM_SCALAR >::prm_attribute, gum::prm::PRMClassElement< GUM_SCALAR >::prm_slotchain, and gum::prm::PRMInstance< GUM_SCALAR >::type().
Referenced by _getAttrSet_(), and _getSCSet_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 491 of file SVED_tpl.h.
References gum::prm::PRMInference< GUM_SCALAR >::evidence(), and gum::Set< Key >::insert().
Referenced by _eliminateNodes_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 280 of file SVED_tpl.h.
References _bb_, _initLiftedNodes_(), _lifted_pools_, gum::prm::PRMInstance< GUM_SCALAR >::bijection(), gum::prm::copyTensor(), and gum::Set< Key >::insert().
Referenced by _eliminateNodesDownward_(), and _eliminateNodesUpward_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 558 of file SVED_tpl.h.
References _bb_, _checkElimOrder_(), and _eliminateNodesDownward_().
Referenced by _eliminateNodes_().
|
private |
Returns true if second can be eliminated before first.
Definition at line 502 of file SVED_tpl.h.
Referenced by _checkElimOrder_().
|
inherited |
Add an evidence to the given instance's elt.
| chain | The variable being observed. |
| p | The Tensor added (by copy) as evidence. |
| NotFound | Raised if elt does not belong to i. |
| OperationNotAllowed | Raised if p is inconsistent with elt. |
Definition at line 128 of file PRMInference_tpl.h.
References gum::Instantiation::end(), GUM_ERROR, gum::Instantiation::inc(), and gum::Instantiation::setFirst().
|
inherited |
Remove all evidences.
Definition at line 57 of file PRMInference_tpl.h.
References _evidences_.
Referenced by ~PRMInference(), and operator=().
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 173 of file PRMInference_tpl.h.
References _evidences_, and GUM_ERROR.
Referenced by gum::prm::SVE< GUM_SCALAR >::_eliminateNodesWithEvidence_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesWithEvidence_(), gum::prm::SVE< GUM_SCALAR >::_insertEvidence_(), gum::prm::SVED< GUM_SCALAR >::_insertEvidence_(), gum::prm::StructuredInference< GUM_SCALAR >::_reduceAloneInstances_(), evidence(), gum::prm::GroundedInference< GUM_SCALAR >::evidenceAdded_(), hasEvidence(), posterior(), and gum::prm::StructuredInference< GUM_SCALAR >::posterior_().
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 180 of file PRMInference_tpl.h.
References _evidences_, and GUM_ERROR.
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 187 of file PRMInference_tpl.h.
References PRMInference(), _evidences_, evidence(), and GUM_ERROR.
|
inherited |
Returns EMap of evidences over i.
| NotFound | if i has no evidence. |
Definition at line 194 of file PRMInference_tpl.h.
References _evidences_, and GUM_ERROR.
|
overrideprotectedvirtual |
See PRMInference::evidenceAdded_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 527 of file SVED_tpl.h.
|
overrideprotectedvirtual |
See PRMInference::evidenceRemoved_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 532 of file SVED_tpl.h.
|
inherited |
Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a.
Definition at line 215 of file PRMInference_tpl.h.
References _evidences_.
|
inherited |
Returns true if i has evidence on PRMAttribute<GUM_SCALAR> a.
Definition at line 210 of file PRMInference_tpl.h.
References evidence(), and hasEvidence().
|
inherited |
Returns true if i has evidence.
Definition at line 200 of file PRMInference_tpl.h.
References _evidences_.
Referenced by gum::prm::SVE< GUM_SCALAR >::_eliminateNodes_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodes_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesDownward_(), gum::prm::SVED< GUM_SCALAR >::_eliminateNodesUpward_(), gum::prm::StructuredInference< GUM_SCALAR >::_insertNodeInElimLists_(), gum::prm::StructuredInference< GUM_SCALAR >::_reduceAloneInstances_(), gum::prm::SVE< GUM_SCALAR >::_variableElimination_(), hasEvidence(), posterior(), gum::prm::StructuredInference< GUM_SCALAR >::posterior_(), and removeEvidence().
|
inherited |
Returns EMap of evidences over i.
Definition at line 205 of file PRMInference_tpl.h.
References _evidences_.
|
inherited |
Compute the joint probability of the formals attributes pointed by chains and stores it in m.
| chains | A Set of strings of the form instance.attribute. |
| j | An empty CPF which will be filed by the joint probability over chains. |
| NotFound | Raised if some chain in chains does not point to a formal attribute. |
| OperationNotAllowed | Raise if m is not empty. |
Definition at line 257 of file PRMInference_tpl.h.
References GUM_ERROR, and joint_().
|
overrideprotectedvirtual |
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 450 of file SVED_tpl.h.
References GUM_ERROR.
|
overridevirtual |
Returns the name of the current inference algorithm.
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 578 of file SVED_tpl.h.
Referenced by _initElimOrder_().
|
inherited |
Compute the posterior of the formal attribute pointed by chain and stores it in m.
| chain | A string of the form instance.attribute. |
| m | An empty CPF which will be filed by the posterior of chain. |
| NotFound | Raised if chain is invalid. |
| TypeError | Raised if chain does not point to an PRMAttribute<GUM_SCALAR>. |
| OperationNotAllowed | Raise if m is not empty. |
Definition at line 231 of file PRMInference_tpl.h.
References gum::prm::PRMInstance< GUM_SCALAR >::end(), evidence(), GUM_ERROR, hasEvidence(), gum::Instantiation::inc(), and gum::Instantiation::setFirst().
|
overrideprotectedvirtual |
See PRMInference::posterior_().
Implements gum::prm::PRMInference< GUM_SCALAR >.
Definition at line 400 of file SVED_tpl.h.
References _bb_, _elim_orders_, _eliminateNodes_(), _lifted_pools_, _req_set_, gum::prm::PRMClassElement< GUM_SCALAR >::id(), and gum::Set< Key >::insert().
|
inherited |
Remove evidence on the given instance's elt.
| chain | The variable being observed. |
| NotFound | Raised if the given names are not found. |
| TypeError | Raised if the elt is not an PRMAttribute<GUM_SCALAR>. |
Definition at line 220 of file PRMInference_tpl.h.
References _EMap_(), evidenceRemoved_(), and hasEvidence().
|
private |
Definition at line 138 of file SVED.h.
Referenced by SVED(), _eliminateNodes_(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), _eliminateNodesWithEvidence_(), _getAttrSet_(), _getSCSet_(), _initLiftedNodes_(), _initReqSets_(), _insertLiftedNodes_(), _reduceElimList_(), and posterior_().
|
private |
Definition at line 136 of file SVED.h.
Referenced by SVED(), ~SVED(), _checkElimOrder_(), and _initElimOrder_().
|
private |
Definition at line 127 of file SVED.h.
Referenced by ~SVED(), _eliminateNodesDownward_(), _eliminateNodesUpward_(), _getElimOrder_(), _initLiftedNodes_(), and posterior_().
|
privateinherited |
Mapping of evidence over PRMInstance<GUM_SCALAR>'s nodes.
Definition at line 245 of file PRMInference.h.
Referenced by PRMInference(), _EMap_(), clearEvidence(), evidence(), evidence(), evidence(), evidence(), hasEvidence(), hasEvidence(), and hasEvidence().
|
private |
The Set<NodeId> returned by StructuredBayesBall<GUM_SCALAR> is unique for each family of instances with the same requisite set (thus the same lifted tensors).
Definition at line 134 of file SVED.h.
Referenced by _initLiftedNodes_(), _insertLiftedNodes_(), and posterior_().
|
private |
First pair -> requisite Attributes Second pair -> requisite SlotChains.
Definition at line 142 of file SVED.h.
Referenced by _getAttrSet_(), _getSCSet_(), _initReqSets_(), and posterior_().
|
protectedinherited |
The PRM<GUM_SCALAR> on which inference is done.
Definition at line 224 of file PRMInference.h.
Referenced by PRMInference(), PRMInference(), gum::prm::StructuredInference< GUM_SCALAR >::StructuredInference(), gum::prm::SVE< GUM_SCALAR >::_initElimOrder_(), gum::prm::SVED< GUM_SCALAR >::_initElimOrder_(), operator=(), and gum::prm::StructuredInference< GUM_SCALAR >::operator=().
|
protectedinherited |
The Model on which inference is done.
Definition at line 227 of file PRMInference.h.
Referenced by PRMInference(), PRMInference(), gum::prm::StructuredInference< GUM_SCALAR >::StructuredInference(), gum::prm::StructuredInference< GUM_SCALAR >::_reduceAloneInstances_(), operator=(), gum::prm::StructuredInference< GUM_SCALAR >::operator=(), and gum::prm::StructuredInference< GUM_SCALAR >::searchPatterns().