You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HISTORY.md
+19
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,25 @@
4
4
5
5
**Breaking changes**
6
6
7
+
### Submodels
8
+
9
+
Variables in a submodel can now be conditioned and fixed in a correct way.
10
+
See https://github.com/TuringLang/DynamicPPL.jl/issues/857 for a full illustration, but essentially it means you can now do this:
11
+
12
+
```julia
13
+
@modelfunctioninner()
14
+
x ~Normal()
15
+
return y ~Normal()
16
+
end
17
+
inner_conditioned =inner() | (x=1.0,)
18
+
@modelfunctionouter()
19
+
return a ~to_submodel(inner_conditioned)
20
+
end
21
+
```
22
+
23
+
and the `inner.x` variable will be correctly conditioned.
24
+
(Previously, you would have to condition `inner()` with the variable `a.x`, meaning that you would need to know what prefix to use before you had actually prefixed it.)
25
+
7
26
### AD testing utilities
8
27
9
28
`DynamicPPL.TestUtils.AD.run_ad` now links the VarInfo by default.
0 commit comments