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()
4242sample (model, externalsampler (sampler), n_samples)
4343```
4444
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:
4646* For multidimensional variables:
4747 * ` RandPermGibbs `
4848 * ` HitAndRun `
@@ -69,11 +69,9 @@ using SliceSampling
6969 end
7070end
7171
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 ),
7775)
7876
7977n_samples = 1000
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ model = demo()
6060sample(model, externalsampler(sampler), n_samples)
6161```
6262
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 ` .
6565
6666``` @example turinggibbs
6767using Distributions
@@ -81,10 +81,8 @@ using SliceSampling
8181end
8282
8383sampler = 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),
8886)
8987
9088n_samples = 1000
You can’t perform that action at this time.
0 commit comments