Skip to content

Commit 2190475

Browse files
yebaipenelopeysm
andauthored
Improve HMC parameters for faster convergence (#570)
Co-authored-by: Penelope Yong <[email protected]>
1 parent 0fd362b commit 2190475

File tree

1 file changed

+1
-1
lines changed
  • tutorials/docs-12-using-turing-guide

1 file changed

+1
-1
lines changed

tutorials/docs-12-using-turing-guide/index.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ end
280280
281281
# Construct a model with x = missing
282282
model = gdemo(missing)
283-
c = sample(model, HMC(0.01, 5), 500)
283+
c = sample(model, HMC(0.05, 20), 500)
284284
```
285285

286286
Note the need to initialize `x` when missing since we are iterating over its elements later in the model. The generated values for `x` can be extracted from the `Chains` object using `c[:x]`.

0 commit comments

Comments
 (0)