BayesNetFragment.maxParam

BayesNetFragment.maxParam()
Returns:

the biggest value in the CPTs of the BayesNet

Return type:

float

Example

import pyagrum as gum

bn = gum.fastBN("A->B->C")
bn.cpt("A").fillWith([0.2, 0.8])
bn.cpt("B").fillWith([1.0, 0.0, 0.3, 0.7])
fragment = gum.BayesNetFragment(bn)
fragment.installAscendants("B")  # the CPT of C is not in the fragment
fragment.maxParam()
# 1.0

Class

BayesNetFragment