Skip to content

Bijectors.ordered and MvLogNormal interaction .. only supported for unconstrained distributions. #295

Open
@jae0

Description

@jae0

Hi, Working through the pPCA Tutorial.

(https://turing.ml/v0.21/tutorials/11-probabilistic-pca)

Everything working but the last part,

Section: Rotation Invariant Householder Parameterization for Bayesian PCA

In the Turing model "pPCA_householder", the sampling fails with error:

ERROR: ArgumentError: ordered transform is currently only supported for unconstrained distributions.
Stacktrace:  
[1] ordered(d::MvLogNormal{Float64, PDMats.PDiagMat{Float64, Vector{Float64}}, FillArrays.Zeros{Float64, 1, Tuple{Base.OneTo{Int64}}}})
@ Bijectors ~/.julia/packages/Bijectors/QhObI/src/bijectors/ordered.jl:21

The key part seems to be:

sigma ~ Bijectors.ordered(MvLogNormal(MvNormal(ones(K))))

Maybe due to call to PDMats.PDiagMat? Any way around this? Thx!

Julia Version 1.9.4 (official release; 8e5136fa297)
[76274a88] + Bijectors v0.13.7
[fce5fe82] Turing v0.29.3
OS: Linux (x86_64-linux-gnu)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions