Skip to content
Discussion options

You must be logged in to vote

I cannot reproduce, works fine on my end

julia> using RxInfer

julia> @model function stacking_example(x)
           z1 ~ Normal(mean= 1, var=10)
           z2 ~ Normal(mean=10, var=1)

           z := vcat(z1, z2) # (obviously here it could be just substituted by a Mv distribution)
           x ~ MvNormalMeanPrecision(z,[1 0; 0 1])
       end

julia> meta = @meta(begin
                      vcat() -> Linearization()end)
Meta:
  vcat() -> Linearization()

julia> result = infer(
                                model = stacking_example(),
                                data = (x = [-1, -1.4],),
                                meta = meta
                                )
Inference results:

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@skoghoern
Comment options

@skoghoern
Comment options

Answer selected by skoghoern
Comment options

You must be logged in to vote
2 replies
@bvdmitri
Comment options

@skoghoern
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants