Skip to content

Commit

Permalink
Remove error: true from config
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Oct 3, 2024
1 parent 5255f44 commit 73e7772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions tutorials/_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ format:
execute:
echo: true
output: true
error: true
include-in-header:
- text: |
<style>
Expand All @@ -16,4 +15,4 @@ include-in-header:
a:hover {
text-decoration: underline;
}
</style>
</style>
1 change: 1 addition & 0 deletions tutorials/docs-17-implementing-samplers/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ logpdf(Beta(3, 3), 10.0)
and so the samples that fall outside of the range are always rejected. But do notice how much worse all the diagnostics are, e.g. `ess_tail` is very poor compared to when we use `unconstrained=true`. Moreover, in more complex cases this won't just result in a "nice" `-Inf` log-density value, but instead will error:

```{julia}
#| error: true
@model function demo()
σ² ~ truncated(Normal(), lower=0)
# If we end up with negative values for `σ²`, the `Normal` will error.
Expand Down

0 comments on commit 73e7772

Please sign in to comment.