Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more extensive usage docs #63

Merged
merged 14 commits into from
May 4, 2022
Prev Previous commit
Next Next commit
Document building Chains
sethaxen committed May 4, 2022
commit e266dde83749920b9e5cf8a7c858a2343a4c13c5
8 changes: 8 additions & 0 deletions docs/src/examples/turing.md
Original file line number Diff line number Diff line change
@@ -99,4 +99,12 @@ samples, stats = sample(
)
```

Now we pack the samples into an `MCMCChains.Chains`:

```@example 1
samples_transformed = reduce(vcat, fun.transform.(samples)')
varnames = Pathfinder.flattened_varnames_list(model)
chns = MCMCChains.Chains(samples_transformed, varnames)
```

See [Initializing HMC with Pathfinder](@ref) for further examples.