Skip to content

Commit 457960f

Browse files
committed
Fix inconsistencies in the ASIA example
1 parent 356c7c2 commit 457960f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/asia-network/main.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ get_vars(tn)
7676

7777
# ---
7878

79-
# Set the evidence: Assume that the "X-ray" result (variable 7) is positive.
79+
# Set the evidence: Assume that the "X-ray" result (variable 7) is negative.
8080
# Since setting the evidence may affect the contraction order of the tensor
8181
# network, recompute it.
8282
tn = TensorNetworkModel(model, evidence = Dict(7 => 0))
@@ -94,8 +94,7 @@ sample(tn, 10)
9494
# ---
9595

9696
# Retrieve both the maximum log-probability and the most probable
97-
# configuration. In this configuration, the most likely outcomes are that the
98-
# patient smokes (variable 3) and has lung cancer (variable 4).
97+
# configuration.
9998
logp, cfg = most_probable_config(tn)
10099

101100
# ---

0 commit comments

Comments
 (0)