LoopyImportanceSampling.nbrEvidence
- LoopyImportanceSampling.nbrEvidence()
- Returns:
the number of evidence entered into the Bayesian network
- Return type:
int
Example
import pyagrum as gum
bn = gum.fastBN("A->B<-C", uniform=True)
ie = gum.LoopyImportanceSampling(bn)
ie.setEvidence({"A": 1, "B": "0", "C": 0})
ie.nbrEvidence()
# 3
Class