MonteCarloSampling.eraseAllEvidence
- MonteCarloSampling.eraseAllEvidence()
Removes all the evidence entered into the network.
- Return type:
None
Example
import pyagrum as gum
bn = gum.fastBN("A->B<-C", uniform=True)
ie = gum.MonteCarloSampling(bn)
ie.setEvidence({"A": 1, "C": 0})
ie.eraseAllEvidence()
ie.nbrEvidence()
# 0
Class
Overridden in