BayesNet.dim

BayesNet.dim()

Returns the dimension (the number of free parameters) in this BayesNet.

Returns:

the dimension of the BayesNet

Return type:

int

Example

import pyagrum as gum

bn = gum.fastBN("A->C<-B")
bn.dim()  # 1 + 1 + 4 free parameters
# 6

Class

BayesNet