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

Use with Turing.jl

Open mohdibntarek opened this issue 5 years ago • 4 comments

Hi,

Thanks for the great package! I wonder how much work would be required to connect the simulator here to https://github.com/TuringLang/Turing.jl. Perhaps the Turing team can help with this effort too. Looking forward to hearing from you.

Regards, Mohamed

mohdibntarek avatar Apr 01 '20 04:04 mohdibntarek

Hello! Thanks for the interest. I'm quite excited by all the probabilistic programming work going on in Julia now. I know of Turing but haven't tried it or explored it deeply. Are there any Turing examples incorporating imputation using data augmentation?

jangevaare avatar Apr 02 '20 14:04 jangevaare

In Turing, if an input is a vector, the elements with value missing will be treated as random variables and sampled from their distributions during sampling. See https://turing.ml/dev/docs/using-turing/guide#treating-observations-as-random-variables for an example.

mohdibntarek avatar Apr 05 '20 13:04 mohdibntarek

In Turing you can define the latent variable model your are interested in, including the LVs used in imputation with data augmentation techniques. The inference algorithms will then take care of sampling with respect to their unnormalised posterior. Alternatively, we have a work in progress PR that allows you to define the conditionals by hand.

trappmartin avatar Apr 05 '20 14:04 trappmartin

Thanks, I'll take a look.

jangevaare avatar Apr 05 '20 19:04 jangevaare