File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments