This commit is contained in:
Daniel Bourke committed 2022-03-12 12:57:52 +10:00
1 parent 91cd4afc51
commit 31d6cd98a3
1 file changed
+61 -61
+61 -61
View File
@@ -129,7 +129,7 @@
},
{
"cell_type": "code",
"execution_count": 61,
"execution_count": null,
"metadata": {
"id": "RGeZvHsyHC72"
},
@@ -157,7 +157,7 @@
},
{
"cell_type": "code",
"execution_count": 62,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -200,7 +200,7 @@
},
{
"cell_type": "code",
"execution_count": 63,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -424,7 +424,7 @@
},
{
"cell_type": "code",
"execution_count": 64,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -464,7 +464,7 @@
},
{
"cell_type": "code",
"execution_count": 65,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -540,7 +540,7 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -584,7 +584,7 @@
},
{
"cell_type": "code",
"execution_count": 67,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -638,7 +638,7 @@
},
{
"cell_type": "code",
"execution_count": 68,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -688,7 +688,7 @@
},
{
"cell_type": "code",
"execution_count": 69,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -755,7 +755,7 @@
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -818,7 +818,7 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -904,7 +904,7 @@
},
{
"cell_type": "code",
"execution_count": 72,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -954,7 +954,7 @@
},
{
"cell_type": "code",
"execution_count": 73,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1063,7 +1063,7 @@
},
{
"cell_type": "code",
"execution_count": 74,
"execution_count": null,
"metadata": {
"id": "DjpQsdOZHC7_"
},
@@ -1106,7 +1106,7 @@
},
{
"cell_type": "code",
"execution_count": 75,
"execution_count": null,
"metadata": {
"id": "RcaZQR0mHC7_"
},
@@ -1185,7 +1185,7 @@
},
{
"cell_type": "code",
"execution_count": 76,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1248,7 +1248,7 @@
},
{
"cell_type": "code",
"execution_count": 77,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1303,7 +1303,7 @@
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1355,7 +1355,7 @@
},
{
"cell_type": "code",
"execution_count": 79,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1411,7 +1411,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1556,7 +1556,7 @@
"id": "QakJVGI8t2gB",
"outputId": "6a26b124-82c3-4b04-f47b-6d05c939d52d"
},
"execution_count": 81,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
@@ -1569,7 +1569,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -1652,7 +1652,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1708,7 +1708,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": null,
"metadata": {
"id": "AXYwYPpSHC8B"
},
@@ -1732,7 +1732,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1817,7 +1817,7 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -1876,7 +1876,7 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1939,7 +1939,7 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -1984,7 +1984,7 @@
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2028,7 +2028,7 @@
},
{
"cell_type": "code",
"execution_count": 90,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2074,7 +2074,7 @@
},
{
"cell_type": "code",
"execution_count": 91,
"execution_count": null,
"metadata": {
"id": "f06fraapHC8E"
},
@@ -2098,7 +2098,7 @@
},
{
"cell_type": "code",
"execution_count": 92,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2182,7 +2182,7 @@
},
{
"cell_type": "code",
"execution_count": 93,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2273,7 +2273,7 @@
},
{
"cell_type": "code",
"execution_count": 94,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2322,7 +2322,7 @@
},
{
"cell_type": "code",
"execution_count": 95,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2389,14 +2389,14 @@
"\n",
"PyTorch has a bunch of [ready-made non-linear activation functions](https://pytorch.org/docs/stable/nn.html#non-linear-activations-weighted-sum-nonlinearity) that do similiar but different things. \n",
"\n",
"One of the most common and best performing is [ReLU](https://en.wikipedia.org/wiki/Rectifier_(neural_networks)) (rectified linear-unit, [`torch.nn.ReLU()`](https://pytorch.org/docs/stable/generated/torch.nn.ReLU.html)).\n",
"One of the most common and best performing is [ReLU](https://en.wikipedia.org/wiki/Rectifier_(neural_networks) (rectified linear-unit, [`torch.nn.ReLU()`](https://pytorch.org/docs/stable/generated/torch.nn.ReLU.html)).\n",
"\n",
"Rather than talk about it, let's put it in our neural network between the hidden layers in the forward pass and see what happens."
]
},
{
"cell_type": "code",
"execution_count": 96,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2458,7 +2458,7 @@
},
{
"cell_type": "code",
"execution_count": 97,
"execution_count": null,
"metadata": {
"id": "uWNlx4lTHC8F"
},
@@ -2492,7 +2492,7 @@
},
{
"cell_type": "code",
"execution_count": 98,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2584,7 +2584,7 @@
},
{
"cell_type": "code",
"execution_count": 99,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2615,7 +2615,7 @@
},
{
"cell_type": "code",
"execution_count": 100,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2681,7 +2681,7 @@
},
{
"cell_type": "code",
"execution_count": 101,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2719,7 +2719,7 @@
},
{
"cell_type": "code",
"execution_count": 102,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2764,7 +2764,7 @@
},
{
"cell_type": "code",
"execution_count": 103,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2807,7 +2807,7 @@
},
{
"cell_type": "code",
"execution_count": 104,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2860,7 +2860,7 @@
},
{
"cell_type": "code",
"execution_count": 105,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -2903,7 +2903,7 @@
},
{
"cell_type": "code",
"execution_count": 106,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -2996,7 +2996,7 @@
},
{
"cell_type": "code",
"execution_count": 107,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -3106,7 +3106,7 @@
},
{
"cell_type": "code",
"execution_count": 108,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -3138,7 +3138,7 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3214,7 +3214,7 @@
},
{
"cell_type": "code",
"execution_count": 110,
"execution_count": null,
"metadata": {
"id": "3ngHLo--HC8H"
},
@@ -3239,7 +3239,7 @@
},
{
"cell_type": "code",
"execution_count": 111,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3284,7 +3284,7 @@
},
{
"cell_type": "code",
"execution_count": 112,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3336,7 +3336,7 @@
},
{
"cell_type": "code",
"execution_count": 113,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3391,7 +3391,7 @@
},
{
"cell_type": "code",
"execution_count": 114,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3431,7 +3431,7 @@
},
{
"cell_type": "code",
"execution_count": 115,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3492,7 +3492,7 @@
},
{
"cell_type": "code",
"execution_count": 116,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3582,7 +3582,7 @@
},
{
"cell_type": "code",
"execution_count": 117,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3640,7 +3640,7 @@
},
{
"cell_type": "code",
"execution_count": 118,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
@@ -3684,7 +3684,7 @@
},
{
"cell_type": "code",
"execution_count": 119,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -3749,7 +3749,7 @@
},
{
"cell_type": "code",
"execution_count": 120,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"