pgmpy/pgmpy_tutorials

something wrong with Bayesian Networks

Closed this issue · 1 comments

cpd_d = TabularCPD(variable='D', variable_card=2, values=[[0.6, 0.4]]) cpd_i = TabularCPD(variable='I', variable_card=2, values=[[0.7, 0.3]])
should be
cpd_d = TabularCPD(variable='D', variable_card=2, values=[[0.6], [0.4]]) cpd_i = TabularCPD(variable='I', variable_card=2, values=[[0.7], [0.3]])

@niudaohong Thanks for reporting this. Has been fixed now.