Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filldist problem with InverseWishart #80

Open
drmarios opened this issue May 16, 2020 · 4 comments
Open

filldist problem with InverseWishart #80

drmarios opened this issue May 16, 2020 · 4 comments

Comments

@drmarios
Copy link

drmarios commented May 16, 2020

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

@HarrisonWilde
Copy link
Member

Bumping this one as running into it as well

@yebai
Copy link
Member

yebai commented Feb 14, 2021

@mohamed82008 Does filldist support matrix-variate distributions?

@mohamed82008
Copy link
Member

I don't think so.

@devmotion
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants