Skip to content

Commit

Permalink
slight formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeRZP committed Oct 19, 2023
1 parent 48fb69c commit 2b48212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/docs-16-external-samplers/external-samplers.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Now we sample the model to generate some observations, which we can then conditi

```julia
(; x) = rand(funnel() | (θ=0,))
model = funnel() | (; x)
model = funnel() | (; x);
```

Users can use any sampler algorithm to sample this model if it follows the `AbstractMCMC` API.
Expand All @@ -56,7 +56,7 @@ Sampling is then as easy as:
chain = sample(model, externalsampler(rwmh), 10_000)
```

## Going beyond the `Turing` API
## Going beyond the Turing API

As previously mentioned, the Turing wrappers can often limit the capabilities of the sampling libraries they wrap.
`AdvancedHMC`[^1] ((`AdvancedHMC`'s GitHub)[https://github.com/TuringLang/AdvancedHMC.jl]) is a clear example of this. A common practice when performing HMC is to provide an initial guess for the mass matrix.
Expand Down

0 comments on commit 2b48212

Please sign in to comment.