LoopyWeightedSampling.currentTime
- LoopyWeightedSampling.currentTime()
- Returns:
get the current running time in second (float)
- Return type:
float
Example
import pyagrum as gum
bn = gum.fastBN("A->B<-C")
ie = gum.LoopyWeightedSampling(bn)
ie.setMaxIter(1000)
ie.makeInference()
ie.currentTime() >= 0 # in seconds
# True
Class