BootstrapMixture.BN
- BootstrapMixture.BN(name)
- Parameters:
name (
str) – Name of the variable.- Returns:
A copy of the BN with name
namein the model.- Return type:
- Raises:
pyagrum.NotFound – If the given name doesn’t correspond to the name of a BN in the model.
Example
import pyagrum as gum
import pyagrum.bnmixture as bnm
mix = bnm.BootstrapMixture("ref", gum.fastBN("A->B->C"))
mix.add("bn1", gum.fastBN("A->B->C"))
mix.add("bn2", gum.fastBN("A->B;A->C"))
sorted(mix.BN("bn2").arcs()) # a copy of the BN named bn2
# [(0, 1), (0, 2)]
Class