2
2
< html xmlns ="http://www.w3.org/1999/xhtml " lang ="en " xml:lang ="en "> < head >
3
3
4
4
< meta charset ="utf-8 ">
5
- < meta name ="generator " content ="quarto-1.8.24 ">
5
+ < meta name ="generator " content ="quarto-1.8.25 ">
6
6
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1.0, user-scalable=yes ">
8
8
75
75
< script src ="../../../site_libs/quarto-html/tippy.umd.min.js "> </ script >
76
76
< script src ="../../../site_libs/quarto-html/anchor.min.js "> </ script >
77
77
< link href ="../../../site_libs/quarto-html/tippy.css " rel ="stylesheet ">
78
- < link href ="../../../site_libs/quarto-html/quarto-syntax-highlighting-a6e161b2431e1f94a14e0f5d32135a3c .css " rel ="stylesheet " class ="quarto-color-scheme " id ="quarto-text-highlighting-styles ">
79
- < link href ="../../../site_libs/quarto-html/quarto-syntax-highlighting-dark-4a17e18fdf56099d4f6da1e105f33a53 .css " rel ="stylesheet " class ="quarto-color-scheme quarto-color-alternate " id ="quarto-text-highlighting-styles ">
80
- < link href ="../../../site_libs/quarto-html/quarto-syntax-highlighting-a6e161b2431e1f94a14e0f5d32135a3c .css " rel ="stylesheet " class ="quarto-color-scheme-extra " id ="quarto-text-highlighting-styles ">
78
+ < link href ="../../../site_libs/quarto-html/quarto-syntax-highlighting-065a5179aebd64318d7ea99d77b64a9e .css " rel ="stylesheet " class ="quarto-color-scheme " id ="quarto-text-highlighting-styles ">
79
+ < link href ="../../../site_libs/quarto-html/quarto-syntax-highlighting-dark-969ddfa49e00a70eb3423444dbc81f6c .css " rel ="stylesheet " class ="quarto-color-scheme quarto-color-alternate " id ="quarto-text-highlighting-styles ">
80
+ < link href ="../../../site_libs/quarto-html/quarto-syntax-highlighting-065a5179aebd64318d7ea99d77b64a9e .css " rel ="stylesheet " class ="quarto-color-scheme-extra " id ="quarto-text-highlighting-styles ">
81
81
< script src ="../../../site_libs/bootstrap/bootstrap.min.js "> </ script >
82
82
< link href ="../../../site_libs/bootstrap/bootstrap-icons.css " rel ="stylesheet ">
83
83
< link href ="../../../site_libs/bootstrap/bootstrap-4157cea7e07fa8cde9040ade24ea50a7.min.css " rel ="stylesheet " append-hash ="true " class ="quarto-color-scheme " id ="quarto-bootstrap " data-mode ="light ">
@@ -944,7 +944,7 @@ <h2 class="anchored" data-anchor-id="desiderata-at-the-context-level">Desiderata
944
944
inner context: ConditionContext(Dict(a.x => 1.0), DynamicPPL.PrefixContext{AbstractPPL.VarName{:a, typeof(identity)}, DynamicPPL.DefaultContext}(a, DynamicPPL.DefaultContext()))</ code > </ pre >
945
945
</ div >
946
946
< div class ="cell-output cell-output-display " data-execution_count ="1 ">
947
- < pre > < code > 1.022659621285321 </ code > </ pre >
947
+ < pre > < code > 1.5197871905215552 </ code > </ pre >
948
948
</ div >
949
949
</ div >
950
950
< p > For the < em > inner</ em > conditioning case (point (3)), the outer model is not run with any special context. The inner model will itself contain a < code > ConditionContext</ code > will contain a < code > VarName</ code > that is not prefixed. When we run the model, this < code > ConditionContext</ code > should be then nested < em > inside</ em > a < code > PrefixContext</ code > to form the final evaluation context. Again, we can run the model to see this in action:</ p >
@@ -955,7 +955,7 @@ <h2 class="anchored" data-anchor-id="desiderata-at-the-context-level">Desiderata
955
955
inner context: DynamicPPL.PrefixContext{AbstractPPL.VarName{:a, typeof(identity)}, DynamicPPL.ConditionContext{Dict{AbstractPPL.VarName{:x, typeof(identity)}, Float64}, DynamicPPL.DefaultContext}}(a, ConditionContext(Dict(x => 1.0), DynamicPPL.DefaultContext()))</ code > </ pre >
956
956
</ div >
957
957
< div class ="cell-output cell-output-display " data-execution_count ="1 ">
958
- < pre > < code > 1.3347198865278098 </ code > </ pre >
958
+ < pre > < code > 0.3340236587387862 </ code > </ pre >
959
959
</ div >
960
960
</ div >
961
961
< p > Putting all of the information so far together, what it means is that if we have these two inner contexts (taken from above):</ p >
0 commit comments