Skip to content

Commit c3fd1a0

Browse files
authored
Update BayesNets.ipynb
1 parent d450335 commit c3fd1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/BayesNets.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
"source": [
369369
"bn2 = BayesNet()\n",
370370
"push!(bn2, StaticCPD(:sighted, NamedCategorical([:bird, :plane, :superman], [0.40, 0.55, 0.05])))\n",
371-
"push!(bn2, FunctionalCPD{Bernoulli}(:happy, [:sighted], a->Bernoulli(a == :superman ? 0.95 : 0.2)))"
371+
"push!(bn2, FunctionalCPD{Bernoulli}(:happy, [:sighted], a->Bernoulli(a[:sighted] == :superman ? 0.95 : 0.2)))"
372372
]
373373
},
374374
{

0 commit comments

Comments
 (0)