WeightedSampling.enableMaxIter

WeightedSampling.enableMaxIter()

Enable max iterations as a stopping criterion.

Return type:

None

Example

import pyagrum as gum

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

Class

WeightedSampling

Overridden in

LoopyWeightedSampling.enableMaxIter