Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

[Feature Request] Add new TFP syntax: JointDistribution*{AutoBatched}

Open phineas-pta opened this issue 3 years ago • 0 comments

Hello,

First of all, thank for writing a very great book, I'm really enjoying it :smile:

Currently in the TFP version of this book, models are "manually" built. I took a look at TFP tutorial here, found out that models could be intuitively built with JointDistribution*{AutoBatched}. For some simple models, this has some advantage of its own:

  • intuitive: can be read seamlessly between code and visualization graph, "fast prototype Bayesian model" to quote their words
  • handles sample() and log_prob() together, you don't need to write different functions

So I suggest you could add this new syntax to your book to keep it up-to-date with new version of TFP

Thank you

phineas-pta avatar Jan 25 '21 21:01 phineas-pta