GibbsSampling.nbrSoftEvidence
- GibbsSampling.nbrSoftEvidence()
- Returns:
the number of soft evidence entered into the Bayesian network
- Return type:
int
Example
import pyagrum as gum
bn = gum.fastBN("A->B<-C", uniform=True)
ie = gum.GibbsSampling(bn)
ie.setEvidence({"A": 1, "B": "0", "C": 0})
ie.nbrSoftEvidence() # sampling accepts hard evidence only
# 0
Class
Overridden in