CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

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

phineas-pta opened this issue ยท 0 comments

Hello,

First of all, thank for writing a very great book, I'm really enjoying it ๐Ÿ˜„

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