WeightedSampling.nbrEvidence

WeightedSampling.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.WeightedSampling(bn)
ie.setEvidence({"A": 1, "C": 0})
ie.nbrEvidence()
# 2

Class

WeightedSampling

Overridden in

LoopyWeightedSampling.nbrEvidence