Instantiation.isMutable

Instantiation.isMutable()

Check whether this Instantiation is a slave of another object: use isSlave instead.

Warning

Deprecated after 3.4.0 (the name is misleading: it gives True for a slave, which is not independently mutable), use isSlave instead.

Returns:

True if the Instantiation is a slave

Return type:

bool

Example

import pyagrum as gum

bn = gum.fastBN("A->B")
i = gum.Instantiation(bn.cpt("B"))  # a slave of the CPT
i.isMutable()  # deprecated: use isSlave (True for a slave)
# True

Class

Instantiation