Skip to content

Commit 85b1c66

Browse files
committed
fix example
1 parent 69a6ccc commit 85b1c66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/asia/main.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ logp, cfg = most_probable_config(tn)
107107
# Compute the most probable values of certain variables (e.g., 4 and 7) while
108108
# marginalizing over others. This is known as Maximum a Posteriori (MAP)
109109
# estimation.
110-
mmap = MMAPModel(instance; queryvars = [4, 7])
110+
set_query!(instance, [4, 7])
111+
mmap = MMAPModel(instance)
111112

112113
# ---
113114

0 commit comments

Comments
 (0)