Skip to content

Commit 6659b0b

Browse files
committed
fix example
1 parent ca954d6 commit 6659b0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/asia/main.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ using TensorInference
5151
# Load the ASIA network model from the `asia.uai` file located in the examples
5252
# directory. See [Model file format (.uai)](@ref) for a description of the
5353
# format of this file.
54-
instance = read_instance(pkgdir(TensorInference, "examples", "asia", "asia.uai"))
54+
instance = read_instance_from_file(pkgdir(TensorInference, "examples", "asia", "asia.uai"))
5555

5656
# ---
5757

@@ -103,7 +103,7 @@ logp, cfg = most_probable_config(tn)
103103
# Compute the most probable values of certain variables (e.g., 4 and 7) while
104104
# marginalizing over others. This is known as Maximum a Posteriori (MAP)
105105
# estimation.
106-
mmap = MMAPModel(instance, queryvars=[4,7])
106+
mmap = MMAPModel(instance, evidence=Dict(7=>0), queryvars=[4,7])
107107

108108
# ---
109109

0 commit comments

Comments
 (0)