WeightedSampling.nbrIterations

WeightedSampling.nbrIterations()
Returns:

the number of iterations

Return type:

int

Example

import pyagrum as gum

bn = gum.fastBN("A->B<-C")
ie = gum.WeightedSampling(bn)
ie.setEpsilon(1e-10)
ie.setMaxIter(1000)
ie.makeInference()
ie.nbrIterations()
# 1000

Class

WeightedSampling

Overridden in

LoopyWeightedSampling.nbrIterations