Pick the value from a result

Not as far as I know.

If the posterior of i_β is always a Dirichlet (or any other distribution with an alpha vector parameter) then you can define a helper function

function get_alpha(result, index, element)
    return result.posteriors[:i_β][index].alpha[element]
end

and call it with alpha_value = get_alpha(result, 1, 1).

RxInfer.jl uses Distributions.jl, so if you want easy access to parameters of distributions like a Dirichlet, you have to open an issue there.

1 Like