BootstrapMixture.remove
- BootstrapMixture.remove(name)
Removes a BN from the model.
- Parameters:
name (
str) – Name of the BN to remove.- Raises:
pyagrum.NotFound – If the given name doesn’t correspond to the name of a BN in the model.
- Return type:
None
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"))
mix.remove("bn1")
mix.names()
# ['bn2']
Class