Skip to content

Commit 4ec5d7f

Browse files
authored
Episode V: Replace truncated(d, 0, Inf) -> truncated(d; lower=0) (#550)
* Replace truncated(d, 0, Inf) -> truncated(d; lower=0) * One more
1 parent efce447 commit 4ec5d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/09-variational-inference/index.qmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ test = Matrix(test_cut[:, remove_names]);
332332
# Bayesian linear regression.
333333
@model function linear_regression(x, y, n_obs, n_vars, ::Type{T}=Vector{Float64}) where {T}
334334
# Set variance prior.
335-
σ² ~ truncated(Normal(0, 100), 0, Inf)
335+
σ² ~ truncated(Normal(0, 100); lower=0)
336336
337337
# Set intercept prior.
338338
intercept ~ Normal(0, 3)

0 commit comments

Comments
 (0)