ShaferShenoyInference.isJointTarget
- ShaferShenoyInference.isJointTarget(targets)
- Parameters:
list – a list of nodes ids or names.
targets (
object)
- Returns:
True if target is a joint target.
- Return type:
bool- Raises:
pyagrum.NotFound – If the node does not belong to the Bayesian network
pyagrum.UndefinedElement – If node Id is not in the Bayesian network
Example
import pyagrum as gum
bn = gum.fastBN("A->B->C")
ie = gum.ShaferShenoyInference(bn)
ie.addJointTarget({"A", "B"})
ie.isJointTarget({"A", "B"})
# True
ie.isJointTarget({"B", "C"})
# False
Class