WeightedSampling.setPeriodSize
- WeightedSampling.setPeriodSize(p)
- Parameters:
p (
int) – the number of iterations between two checks of the stopping criteria (and between two values ofhistory())- Raises:
pyagrum.OutOfBounds – If p<1
- Return type:
None
Example
import pyagrum as gum
bn = gum.fastBN("A->B<-C")
ie = gum.WeightedSampling(bn)
ie.setPeriodSize(50)
ie.periodSize()
# 50
Class
Overridden in