Skip to content

Commit dbf3050

Browse files
Final
1 parent b66a330 commit dbf3050

28 files changed

+5098
-2138
lines changed

0 - Introduction.ipynb

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Bayesian Deep Learning in TensorFlow Probability and TensorFlow 2.0 -- The How and the Why"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
" "
15+
]
16+
},
17+
{
18+
"cell_type": "markdown",
19+
"metadata": {},
20+
"source": [
21+
" "
22+
]
23+
},
24+
{
25+
"cell_type": "markdown",
26+
"metadata": {},
27+
"source": [
28+
"\n",
29+
" \n",
30+
"![Hello](https://media1.giphy.com/media/ASd0Ukj0y3qMM/giphy.gif \"Wave\")\n"
31+
]
32+
},
33+
{
34+
"cell_type": "markdown",
35+
"metadata": {},
36+
"source": [
37+
"## What this talk is\n",
38+
"\n",
39+
"- An overivew of the `layers` module of the recently-released TensorFlow Probability package and its integration into TensorFlow 2.0 `keras`\n",
40+
"- An explanation of how to use `tfp.layers` in order to fit distributions over weights of neural networks and why you would want to do that\n"
41+
]
42+
},
43+
{
44+
"cell_type": "markdown",
45+
"metadata": {},
46+
"source": [
47+
" \n",
48+
" "
49+
]
50+
},
51+
{
52+
"cell_type": "markdown",
53+
"metadata": {},
54+
"source": [
55+
"## What this talk isn't\n",
56+
"- An introduction to probabilistic programming, Bayesian reasoning, and their subtopics in a general fashion\n",
57+
"- A deep dive into the mechanics of variational inference and other techniques implemented in TensorFlow Probability\n",
58+
"- An introduction to vanilla neural networks and their applications"
59+
]
60+
},
61+
{
62+
"cell_type": "markdown",
63+
"metadata": {},
64+
"source": [
65+
"## Who this talk is for\n",
66+
"\n",
67+
"- Pracitioners! Anyone interested in applying the latest in TensorFlow and TensorFlow Probability to solve interesting problems.\n",
68+
"- People who are interested in marrying probabilistic techniques with deep learning frameworks, but haven't yet delved in themselves."
69+
]
70+
},
71+
{
72+
"cell_type": "markdown",
73+
"metadata": {},
74+
"source": [
75+
"## Why does this matter?"
76+
]
77+
},
78+
{
79+
"cell_type": "code",
80+
"execution_count": 2,
81+
"metadata": {},
82+
"outputs": [
83+
{
84+
"name": "stderr",
85+
"output_type": "stream",
86+
"text": [
87+
"/Users/anglin/.pyenv/versions/3.7.2/envs/tensorflow2/lib/python3.7/site-packages/IPython/core/display.py:701: UserWarning: Consider using IPython.display.IFrame instead\n",
88+
" warnings.warn(\"Consider using IPython.display.IFrame instead\")\n"
89+
]
90+
},
91+
{
92+
"data": {
93+
"text/html": [
94+
"<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/HumFmLu3CJ8\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"
95+
],
96+
"text/plain": [
97+
"<IPython.core.display.HTML object>"
98+
]
99+
},
100+
"execution_count": 2,
101+
"metadata": {},
102+
"output_type": "execute_result"
103+
}
104+
],
105+
"source": [
106+
"from IPython.display import HTML\n",
107+
"\n",
108+
"HTML('<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/HumFmLu3CJ8\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>')"
109+
]
110+
},
111+
{
112+
"cell_type": "markdown",
113+
"metadata": {},
114+
"source": [
115+
"Probabilistic deep learning is a field that's experienced hype in the recent past, but its depth of required knowledge and lack of high-level tools has discouraged many from being able to participate. Frameworks like Pyro on PyTorch have sought to address this problem, but so far uptake remains low.\n",
116+
"\n",
117+
"With the recent release of TensorFlow 2.0, the probabilistic learning framework TensorFlow Probability is included as a first class member of the TensorFlow ecosystem, and interoperates cleanly with TensorFlow 2.0 `keras`. This makes previous problems like fitting priors on the weights in a convolutional neural network layer much more approachable from a computational standpoint, allowing practitioners to focus on the theory and problems they are trying to solve."
118+
]
119+
}
120+
],
121+
"metadata": {
122+
"kernelspec": {
123+
"display_name": "Python 3",
124+
"language": "python",
125+
"name": "python3"
126+
},
127+
"language_info": {
128+
"codemirror_mode": {
129+
"name": "ipython",
130+
"version": 3
131+
},
132+
"file_extension": ".py",
133+
"mimetype": "text/x-python",
134+
"name": "python",
135+
"nbconvert_exporter": "python",
136+
"pygments_lexer": "ipython3",
137+
"version": "3.7.2"
138+
}
139+
},
140+
"nbformat": 4,
141+
"nbformat_minor": 4
142+
}

0 commit comments

Comments
 (0)