diff --git a/src/likelihoods/gaussian.jl b/src/likelihoods/gaussian.jl index e8ee51e..c8c2a75 100644 --- a/src/likelihoods/gaussian.jl +++ b/src/likelihoods/gaussian.jl @@ -38,7 +38,7 @@ function expected_loglikelihood( q_f::AbstractVector{<:Normal}, y::AbstractVector{<:Real}, ) - return sum(_gaussian_exp_loglikelihood_kernel.(getfield.(liks, :σ²), q_f, y)) + return sum(_gaussian_exp_loglikelihood_kernel.(only.(getfield.(liks, :σ²)), q_f, y)) end function _gaussian_exp_loglikelihood_kernel(σ², q_f, y)