Skip to content

Commit 61ab9f6

Browse files
committed
fix call describe(chain) in Turing examples
1 parent cafd9d7 commit 61ab9f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/general.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ end
5757
sampler = RandPermGibbs(SliceSteppingOut(2.))
5858
n_samples = 10000
5959
model = demo()
60-
sample(model, externalsampler(sampler), n_samples)
60+
chain = sample(model, externalsampler(sampler), n_samples)
61+
describe(chain)
6162
```
6263

6364
### Conditional sampling in a `Turing.Gibbs` sampler
@@ -87,7 +88,8 @@ sampler = Turing.Gibbs(
8788
8889
n_samples = 1000
8990
model = simple_choice([1.5, 2.0, 0.3])
90-
sample(model, sampler, n_samples)
91+
chain = sample(model, sampler, n_samples)
92+
describe(chain)
9193
```
9294

9395
## Drawing Samples

0 commit comments

Comments
 (0)