Anthill Inside 2019

A conference on AI and Deep Learning

Tickets

Loading…

Hariharan C

@harc

Introduction to Probabilistic Programming - PyMC3 and Edward

Submitted Apr 13, 2019

Probabilistic programming differ from deterministic ones by allowing language primitives to be stochastic. In other words, instead of being restricted to deterministic assignments such as:

rent = 25000

one can specify a probability distribution from which this house with such a rent was drawn

rent ~ Normal(mu=25000, sigma=1000)

The expressiveness of the probabilistic programming frawework, both theoretical and practical, allows us to go further into replacing parameters of Machine Learning algorithms with distributions. How do we do that?

With enhancing concerns about trust in blackbox AI, cases of small data, why will probabilistic programming help?

PyMC, Edward, Tensorflow Probability, Where do I start?

I’m so used to blackbox ML, How do I wear a Bayesian hat?

This talk tries to answer these questions.

Outline

Technically, talk will help get started with coding in PyMC3 and Edward, understand their strengths and weakness. Starting from Bayesian Inference to applying the same concepts on ML. In that sense, get an overall idea of how and where probabilistic programming helps. Code and graphs can be shown via Jupyter Notebook.

Requirements

Basic understanding of widely used Probability Distributions like Normal, Poisson, Binomial. Basic understanding of Machine Learning, Neural Networks. Also Python.

It would be easier if you have Jupyter, Pymc3 and Edward installed apart from usual suspects like numpy/pandas/seaborn etc.

You might want to install a Tensorflow version < 1.7 for Edward compatibility.

Following are the pip packages I have installed for this session:

absl-py0.7.1
astor
0.7.1
backports-abc0.5
backports.functools-lru-cache
1.5
backports.shutil-get-terminal-size1.0.0
backports.weakref
1.0.post1
bleach1.5.0
cycler
0.10.0
decorator4.4.0
edward
1.3.5
enum341.1.6
funcsigs
1.0.2
futures3.2.0
gast
0.2.2
grpcio1.20.1
h5py
2.9.0
html5lib0.9999999
ipykernel
4.10.0
ipython5.8.0
ipython-genutils
0.2.0
joblib0.12.5
jupyter-client
5.2.4
jupyter-core4.4.0
Keras-Applications
1.0.7
Keras-Preprocessing1.0.9
kiwisolver
1.1.0
Markdown3.1
matplotlib
2.2.4
mock3.0.5
numpy
1.16.3
pandas0.24.2
pathlib2
2.3.3
patsy0.5.1
pexpect
4.7.0
pickleshare0.7.5
prompt-toolkit
1.0.16
protobuf3.7.1
ptyprocess
0.6.0
Pygments2.4.0
pymc3
3.6
pyparsing2.4.0
python-dateutil
2.8.0
pytz2019.1
pyzmq
18.0.1
scandir1.10.0
scipy
1.2.1
seaborn0.9.0
simplegeneric
0.8.1
singledispatch3.4.0.3
six
1.12.0
subprocess323.5.3
tensorboard
1.6.0
tensorflow1.6.0
tensorflow-estimator
1.13.0
termcolor1.1.0
Theano
1.0.4
tornado5.1.1
tqdm
4.32.1
traitlets4.3.2
wcwidth
0.1.7
Werkzeug==0.15.4

Speaker bio

I’m Hariharan and I’m usually curious and love learning new things. I graduated from BITS – Pilani and since been in the industry for roughly 7 years. I have predominantly worked in the field of Machine Learning in my time in the industry. I love watching football, cricket. I used to love playing them, not anymore 😊. I like quizzing, despite not being good at it.

Slides

https://www.slideshare.net/hariharanchandrasekaran9/into-to-probproghari-2

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hybrid access (members only)

Hosted by

Anthill Inside is a forum for conversations about risk mitigation and governance in Artificial Intelligence and Deep Learning. AI developers, researchers, startup founders, ethicists, and AI enthusiasts are encouraged to: more