Understanding TensorFlow probability, variational inference, and Monte Carlo methods

TensorFlow Probability (tfp in code – https://www.tensorflow.org/probability/overview#layer_2_model_building) was recently released by Google to perform probabilistic reasoning in a scalable manner. It provides tools and functionalities to define distributions, build neural networks with prior on weights, and perform probabilistic inference tasks such as Monte Carlo or Variational Inference.

Let's take a look at some of the functions/utilities we will be using for building our model:

  • Tfp.distributions.categorical: This is a standard categorical distribution that's characterized by probabilities or log-probabilities over K classes. In this project, we have ...

Get TensorFlow Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.