diff --git a/tutorials/docs-13-using-turing-performance-tips/index.qmd b/tutorials/docs-13-using-turing-performance-tips/index.qmd index 6eca73ee8..9dd73d752 100755 --- a/tutorials/docs-13-using-turing-performance-tips/index.qmd +++ b/tutorials/docs-13-using-turing-performance-tips/index.qmd @@ -81,7 +81,7 @@ The following example with abstract types p, n = size(x) params = Vector{Real}(undef, n) for i in 1:n - params[i] ~ truncated(Normal(), 0, Inf) + params[i] ~ truncated(Normal(); lower=0) end a = x * params @@ -96,7 +96,7 @@ can be transformed into the following representation with concrete types: p, n = size(x) params = Vector{T}(undef, n) for i in 1:n - params[i] ~ truncated(Normal(), 0, Inf) + params[i] ~ truncated(Normal(); lower=0) end a = x * params @@ -108,7 +108,7 @@ Alternatively, you could use `filldist` in this example: ```{julia} @model function tmodel(x, y) - params ~ filldist(truncated(Normal(), 0, Inf), size(x, 2)) + params ~ filldist(truncated(Normal(); lower=0), size(x, 2)) a = x * params return y ~ MvNormal(a, I) end