We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356c7c2 commit 457960fCopy full SHA for 457960f
examples/asia-network/main.jl
@@ -76,7 +76,7 @@ get_vars(tn)
76
77
# ---
78
79
-# Set the evidence: Assume that the "X-ray" result (variable 7) is positive.
+# Set the evidence: Assume that the "X-ray" result (variable 7) is negative.
80
# Since setting the evidence may affect the contraction order of the tensor
81
# network, recompute it.
82
tn = TensorNetworkModel(model, evidence = Dict(7 => 0))
@@ -94,8 +94,7 @@ sample(tn, 10)
94
95
96
# 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).
+# configuration.
99
logp, cfg = most_probable_config(tn)
100
101
0 commit comments