File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ model = demo()
42
42
sample (model, externalsampler (sampler), n_samples)
43
43
```
44
44
45
- The following slice samplers can also be used as a conditional sampler in ` Turing.Experimental. Gibbs ` sampler:
45
+ The following slice samplers can also be used as a conditional sampler in ` Turing.Gibbs ` sampler:
46
46
* For multidimensional variables:
47
47
* ` RandPermGibbs `
48
48
* ` HitAndRun `
@@ -69,11 +69,9 @@ using SliceSampling
69
69
end
70
70
end
71
71
72
- sampler = Turing. Experimental. Gibbs (
73
- (
74
- p = externalsampler (SliceSteppingOut (2.0 )),
75
- z = PG (20 , :z )
76
- )
72
+ sampler = Turing. Gibbs (
73
+ p => externalsampler (SliceSteppingOut (2.0 )),
74
+ z => PG (20 , :z ),
77
75
)
78
76
79
77
n_samples = 1000
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ model = demo()
60
60
sample(model, externalsampler(sampler), n_samples)
61
61
```
62
62
63
- ### Conditional sampling in a ` Turing.Experimental. Gibbs ` sampler
64
- ` SliceSampling.jl ` be used as a conditional sampler in ` Turing.Experimental. Gibbs ` .
63
+ ### Conditional sampling in a ` Turing.Gibbs ` sampler
64
+ ` SliceSampling.jl ` be used as a conditional sampler in ` Turing.Gibbs ` .
65
65
66
66
``` @example turinggibbs
67
67
using Distributions
@@ -81,10 +81,8 @@ using SliceSampling
81
81
end
82
82
83
83
sampler = Turing.Experimental.Gibbs(
84
- (
85
- p = externalsampler(SliceSteppingOut(2.0)),
86
- z = PG(20, :z)
87
- )
84
+ p => externalsampler(SliceSteppingOut(2.0)),
85
+ z => PG(20, :z),
88
86
)
89
87
90
88
n_samples = 1000
You can’t perform that action at this time.
0 commit comments