DistributionsAD.jl icon indicating copy to clipboard operation
DistributionsAD.jl copied to clipboard

filldist problem with InverseWishart

Open drmarios opened this issue 5 years ago • 4 comments

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

drmarios avatar May 16 '20 15:05 drmarios

Bumping this one as running into it as well

HarrisonWilde avatar Feb 13 '21 09:02 HarrisonWilde

@mohamed82008 Does filldist support matrix-variate distributions?

yebai avatar Feb 14 '21 21:02 yebai

I don't think so.

mohdibntarek avatar Feb 15 '21 00:02 mohdibntarek

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.

devmotion avatar Feb 15 '21 07:02 devmotion