Skip to content

Commit

Permalink
WIP: Cu-Mg example update
Browse files Browse the repository at this point in the history
  • Loading branch information
bocklund committed Aug 13, 2024
1 parent bc66811 commit a6445e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ _site
reference/api
objects.json
_sidebar.yml
html.json
html.json
tutorials/cu-mg-example/mcmc-log.txt
8 changes: 5 additions & 3 deletions tutorials/cu-mg-example/cu-mg-example.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,13 @@ because increasing one parameter while decreasing another would give a
similar error.

``` {python}
#| warning: false
import corner
burn_in_iterations = 5
burn_in_iterations = 50
fig = plt.figure(figsize=(16,16)) # this is a little condensed for the web view
# flatten the along the first dimension containing all the chains in parallel
fig = corner.corner(trace[:, burn_in_iterations:, :].reshape(-1, trace.shape[-1]))
plt.show()
corner.corner(trace[:, burn_in_iterations:, :].reshape(-1, trace.shape[-1]), fig=fig)
fig.show()
```

Ultimately, there are many features to explore and we have only covered
Expand Down

0 comments on commit a6445e7

Please sign in to comment.