Hacker News new | past | comments | ask | show | jobs | submit login

What's the impediment to porting these variational algorithms over to a Turing-complete probabilistic programming language?



Stan is Turing complete or you mean.. inception??


So I can write a Church to Stan compiler, in principle?


Yes, you would either generate Stan code or rewrite your AST into something the Stan compiler understands.

However, if Church allows you to express non differentiable models (e.g. if you have a Heaviside function), then they will either fail or not work well with HMC or ADVI (the variational inference algorithm Stan uses), because both assume that gradient of the posterior can be computed and is informative about the posterior.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: