BootstrapMixture.variable

BootstrapMixture.variable(name)
Parameters:

name (str) – Name of the variable.

Returns:

The corresponding variable.

Return type:

pyagrum.DiscreteVariable

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"))
print(mix.variable("B"))
# B:Range([0,1])

Class

BootstrapMixture