pyAgrum on notebooks
☰  aggregators

### Aggregators¶

Aggregators are special type of nodes that includes a generic CPT for any numbers of parents.

pyAgrum proposes a list of such aggregators. Some of then are used below.

In [1]:
import numpy as np

import pyAgrum as gum
import pyAgrum.lib.notebook as gnb

In [2]:
bn=gum.BayesNet()

In [3]:
nmax=bn.addMAX(gum.RangeVariable("MAX","MAX",0,15))

for n in [l[0],l[1],l[2],l[3]]:
#potential for median has a size : 16^5=2^20 double !


for nod in l:

# if I know that the median is between 8 and 13 ...