Fix the link to the first video, and add a link and an embed for the second video

This commit is contained in:
Aurelien Geron
2017-11-30 19:00:21 +01:00
parent 6a3072a125
commit ff66447d1b

View File

@@ -32,7 +32,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"Watch [this video](https://www.youtube.com/embed/pPN8d0E3900) to understand the key ideas behind Capsule Networks:" "Watch [this video](https://youtu.be/pPN8d0E3900) to understand the key ideas behind Capsule Networks:"
] ]
}, },
{ {
@@ -43,10 +43,7 @@
{ {
"data": { "data": {
"text/html": [ "text/html": [
"<iframe width=\"560\" height=\"315\"\n", "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/pPN8d0E3900\" frameborder=\"0\" allowfullscreen></iframe>"
" src=\"https://www.youtube.com/embed/pPN8d0E3900\"\n",
" frameborder=\"0\"\n",
" allowfullscreen></iframe>"
], ],
"text/plain": [ "text/plain": [
"<IPython.core.display.HTML object>" "<IPython.core.display.HTML object>"
@@ -59,12 +56,37 @@
], ],
"source": [ "source": [
"from IPython.display import HTML\n", "from IPython.display import HTML\n",
"\n", "HTML(\"\"\"<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/pPN8d0E3900\" frameborder=\"0\" allowfullscreen></iframe>\"\"\")"
"# Display the video in an iframe:\n", ]
"HTML(\"\"\"<iframe width=\"560\" height=\"315\"\n", },
" src=\"https://www.youtube.com/embed/pPN8d0E3900\"\n", {
" frameborder=\"0\"\n", "cell_type": "markdown",
" allowfullscreen></iframe>\"\"\")" "metadata": {},
"source": [
"You may also want to watch [this video](https://youtu.be/2Kawrd5szHE), which presents the main difficulties in this notebook:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/2Kawrd5szHE\" frameborder=\"0\" allowfullscreen></iframe>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"HTML(\"\"\"<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/2Kawrd5szHE\" frameborder=\"0\" allowfullscreen></iframe>\"\"\")"
] ]
}, },
{ {
@@ -560,6 +582,7 @@
"metadata": {}, "metadata": {},
"source": [ "source": [
"We can apply this function to compute $\\hat{\\mathbf{u}}_{j|i}$ for every pair of capsules ($i$, $j$) like this (recall that there are 6×6×32=1152 capsules in the first layer, and 10 in the second layer):\n", "We can apply this function to compute $\\hat{\\mathbf{u}}_{j|i}$ for every pair of capsules ($i$, $j$) like this (recall that there are 6×6×32=1152 capsules in the first layer, and 10 in the second layer):\n",
"\n",
"$\n", "$\n",
"\\pmatrix{\n", "\\pmatrix{\n",
" \\mathbf{W}_{1,1} & \\mathbf{W}_{1,2} & \\cdots & \\mathbf{W}_{1,10} \\\\\n", " \\mathbf{W}_{1,1} & \\mathbf{W}_{1,2} & \\cdots & \\mathbf{W}_{1,10} \\\\\n",
@@ -2522,7 +2545,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.5.2" "version": "3.6.3"
} }
}, },
"nbformat": 4, "nbformat": 4,