TensorFlow probability Independent

Course notes for Probabilistic Deep Learning with TensorFlow by Dr Kevin Webster
ML
AI
NLP
Bijectors
Auto Regressive Flows
Author

Oren Bochman

Published

Tuesday, June 1, 2021

These are my course notes on Probabilistic Deep Learning with TensorFlow by Dr Kevin Webster of Imperial College London 2 The course url

Distributions - the sample the batch and the event

The way we are taught probability and statistics and later how we approach multivariate data in data science reinforces a static and low dimensional view of data. But when we want to work with Graphical models, Bayesian networks, Multilevel models and later with probabilistic neral networks we need to expand our thinking about these. One key new skill one must develop is creating distributions with specific shapes and transforming to new shapes. This manipulation of tensors should already be familiar from work with convolutional or sequence models. But is those cases you typically only need to handle shapes at the input or output of the model and the framework mostly deals with these nitty gritty details. With TensorFlow probability shapes these details need to be part of one’s thinking. Unless they are second nature you will struggle to implementing the with the more complex parts and TFP is just a part of a much bigger picture.

Independent - moving dimensions from batch to event

Indeed! This is taking multiple low dimensional distribution and histing them to be higher dimensional. This is a super powerful idea. I first came the notion when researching complex values distribution in one of my early attempts at representing uncertainty and fuzziness. What little data that I could find said these can be viewed as two distributions…. Some alternatives: A multivariate normal with a diagonal covarience matrix

A multivariate normal with a full covarience matrix

Resources:

if like me, you initially feel that numpy array broadcasting feels strange and awkward you may want to look at: - Numpy Broadcasting Guide - Array Broadcasting in Numpy

Reuse

CC SA BY-NC-ND

Citation

BibTeX citation:
@online{bochman2021,
  author = {Bochman, Oren},
  title = {TensorFlow Probability {Independent}},
  date = {2021-06-01},
  url = {https://orenbochman.github.io/notes/TFP/2021-06-02-tfp-week1-independet/2021-06-02-tfp-week1-independet.html},
  langid = {en}
}
For attribution, please cite this work as:
Bochman, Oren. 2021. “TensorFlow Probability Independent.” June 1, 2021. https://orenbochman.github.io/notes/TFP/2021-06-02-tfp-week1-independet/2021-06-02-tfp-week1-independet.html.