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: usage/probability-interface/index.qmd
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Let's use a simple model of normally-distributed data as an example.
18
18
19
19
```{julia}
20
20
using Turing
21
-
using LinearAlgebra: I
21
+
using DynamicPPL
22
22
using Random
23
23
24
24
@model function gdemo(n)
@@ -98,11 +98,9 @@ logjoint(model, sample)
98
98
```
99
99
100
100
For models with many variables `rand(model)` can be prohibitively slow since it returns a `NamedTuple` of samples from the prior distribution of the unconditioned variables.
101
-
We recommend working with samples of type `DataStructures.OrderedDict` in this case:
101
+
We recommend working with samples of type `DataStructures.OrderedDict` in this case (which Turing re-exports, so can be used directly):
0 commit comments