lib.notebook.showPosterior
- pyagrum.lib.notebook.showPosterior(bn, evs, target)
shortcut for showProba(pyagrum.getPosterior(bn,evs,target))
- Parameters:
bn (
pyagrum.BayesNet) – the BayesNetevs (
dict[int | str,int | str | list[float]]) – map of evidencetarget (
int | str) – name of target variable
- Return type:
None
Example
import pyagrum as gum
import pyagrum.lib.notebook as gnb
bn = gum.fastBN("A->B->C")
gnb.showPosterior(bn, evs={"A": 1}, target="C")