question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Probabilistic programming interface

See original GitHub issue

Is there a plan of adding probabilistic programming interface, such as rlax.distributions or tfp.

Right now, numpyro is the only JAX-powered library for this. I could add an example of how to combine dm-haiku and numpyro if you want.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
trevorcaicommented, Mar 3, 2020

To be honest, I haven’t yet explored probabilistic programming (past using tfp.distributions for other projects in the past) in sufficient depth to give a strong answer here. I like declaring things out of scope where sensible; if Haiku composes with numpyro or other pure-functional libraries, we’ll just declare this out of scope!

My limited experience with Haiku + RLAX and Sonnet + TFP has given me no indicator that Haiku won’t compose with probabilistic programming libraries; I’ve previously written VAEs in Haiku with no issues.

That said, I’d love to see an example combining Haiku & numpyro, though it could be tricky for us to merge internally.

Any thoughts, @ibab ?

1reaction
ibabcommented, Mar 7, 2020

Here’s an example of how to replace the stax networks in the numpyro VAE example with Haiku: https://github.com/ibab/numpyro/commit/076bb2a15026734a41abf4eb39ce384ab68c297f We could add a Haiku to stax converter function to Haiku to streamline use cases like this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Probabilistic Programming - Cornell Computer Science
Instead, probabilistic programming is a tool for statistical modeling. The idea is to borrow lessons from the world of programming languages and apply...
Read more >
An Introduction to Probabilistic Programming - arXiv
It is aimed at people who have an undergraduate-level understanding of either or, ideally, both probabilistic machine learning and programming.
Read more >
Probabilistic programming - Wikipedia
Probabilistic programming (PP) is a programming paradigm in which probabilistic models are specified and inference for these models is performed ...
Read more >
Understanding Probabilistic Programming
We can think of Probabilistic Programming as a tool for statistical modelling. Probabilistic Programming has randomization at its core and the ...
Read more >
10. Probabilistic Programming Languages
In a PPL the two necessary components are: an application programming interface for the user to define the model [1], and algorithms to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found