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

Remove error: true from config #529

Merged
merged 5 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
version: '1.10'

- name: Load Julia packages from cache
uses: julia-actions/cache@v2

# Note: needs resolve() to fix #518
penelopeysm marked this conversation as resolved.
Show resolved Hide resolved
- name: Instantiate Julia environment
run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
with:
version: '1.10'

- name: Load Julia packages from cache
uses: julia-actions/cache@v2

# Note: needs resolve() to fix #518
- name: Instantiate Julia environment
run: julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.resolve()'
Expand Down
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ project:
port: 4200
browser: true


# These cannot be used as variables. They are reserved for the project configuration.
website:
title: "Turing.jl"
Expand Down
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
Loading