Skip to content

Commit

Permalink
Episode V: Replace truncated(d, 0, Inf) -> truncated(d; lower=0) (#550)
Browse files Browse the repository at this point in the history
* Replace truncated(d, 0, Inf) -> truncated(d; lower=0)

* One more
  • Loading branch information
penelopeysm authored Nov 6, 2024
1 parent efce447 commit 4ec5d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/09-variational-inference/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ test = Matrix(test_cut[:, remove_names]);
# Bayesian linear regression.
@model function linear_regression(x, y, n_obs, n_vars, ::Type{T}=Vector{Float64}) where {T}
# Set variance prior.
σ² ~ truncated(Normal(0, 100), 0, Inf)
σ² ~ truncated(Normal(0, 100); lower=0)
# Set intercept prior.
intercept ~ Normal(0, 3)
Expand Down

0 comments on commit 4ec5d7f

Please sign in to comment.