From 4ec5d7f472c5d1fb7e5d0e65739485699224aac1 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Wed, 6 Nov 2024 10:45:10 +0000 Subject: [PATCH] Episode V: Replace truncated(d, 0, Inf) -> truncated(d; lower=0) (#550) * Replace truncated(d, 0, Inf) -> truncated(d; lower=0) * One more --- tutorials/09-variational-inference/index.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/09-variational-inference/index.qmd b/tutorials/09-variational-inference/index.qmd index 56acb3208..ef9643756 100755 --- a/tutorials/09-variational-inference/index.qmd +++ b/tutorials/09-variational-inference/index.qmd @@ -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)