LazyPropagation.BN
- LazyPropagation.BN()
- Returns:
A constant reference over the IBayesNet referenced by this class.
- Return type:
pyagrum.IBayesNet- Raises:
pyagrum.UndefinedElement – If no Bayes net has been assigned to the inference.
Example
import pyagrum as gum
bn = gum.fastBN("A->B->C")
ie = gum.LazyPropagation(bn)
ie.BN().size()
# 3
sorted(ie.BN().names())
# ['A', 'B', 'C']
Class