Open drmarios opened 4 years ago
Bumping this one as running into it as well
@mohamed82008 Does filldist
support matrix-variate distributions?
I don't think so.
I assume it is not supported since Distributions only contains types and methods for uni-, multi-, and matrixvariate distributions. Therefore filldist
(and arraydist
) only support vectors and matrices of univariate distributions and vectors of multivariate distributions, which yield multi- and matrixvariate distributions. Other combinations do not fit into the categories of uni-, multi-, and matrixvariate distributions in Distributions.
I'm trying to setup InverseWishart prior in my Turing.jl model as follows:
τ ~ filldist(InverseWishart(2+1, Matrix{Float64}([[3,0.5] [0.5,3]])), 10)
and getting error message:
MethodError: no method matching filldist(::InverseWishart{Float64,PDMats.PDMat{Float64,Array{Float64,2}}}, ::Int64)
This is with latest version of Julia\Turing