LoopyWeightedSampling.enableMaxIter

LoopyWeightedSampling.enableMaxIter()

Enable max iterations as a stopping criterion.

Return type:

None

Example

import pyagrum as gum

bn = gum.fastBN("A->B<-C")
ie = gum.LoopyWeightedSampling(bn)
ie.disableMaxIter()
ie.enableMaxIter()
ie.isEnabledMaxIter()
# True

Class

LoopyWeightedSampling