Here is a solution of a Bayesian inference using RxInfer:
julia> result
Inference results:
Posteriors | available for (i_β)
julia> result.posteriors
Dict{Symbol, Vector{Dirichlet{Float64, Vector{Float64}, Float64}}} with 1 entry:
:i_β => [Dirichlet{Float64, Vector{Float64}, Float64}(alpha=[…
julia> result.posteriors[:i_β][1]
Dirichlet{Float64, Vector{Float64}, Float64}(alpha=[0.01559091258256351, 0.20785569702925843, 1.0099435968993862])
julia> result.posteriors[:i_β][1].alpha
3-element Vector{Float64}:
0.01559091258256351
0.20785569702925843
1.0099435968993862
julia> result.posteriors[:i_β][1].alpha[1]
0.01559091258256351
Too tedious to get the value wanted, any convenient method?