Skip to content
Discussion options

You must be logged in to vote

Hi @keorn, could you please write the probabilistic generative model? I fail to see what are your observations here.

You could write something like this, but not sure that's what you mean.

using RxInfer

@model function ivy_model(y)
    a ~ Normal(mean = 1., var = 5.)
    b ~ Normal(mean = 2., var = 5.)
    
    c1 = [1, 0]
    c2 = [0, 1]
    y ~ MvNormal(mean = c1 * a + c2 * b, covariance = diageye(2))
end

result = infer(model=ivy_model(), data=(y=[10, 200],), free_energy=true)

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@albertpod
Comment options

@bvdmitri
Comment options

@keorn
Comment options

@bvdmitri
Comment options

@keorn
Comment options

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