From c117970ba7e2f0e3c355c688dd58bad4bc338f67 Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Fri, 13 May 2022 08:25:12 +1000 Subject: [PATCH] update 05 solutions template --- ...rch_going_modular_exercise_solutions.ipynb | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/extras/solutions/05_pytorch_going_modular_exercise_solutions.ipynb b/extras/solutions/05_pytorch_going_modular_exercise_solutions.ipynb index 44bd01b..ecf89dd 100644 --- a/extras/solutions/05_pytorch_going_modular_exercise_solutions.ipynb +++ b/extras/solutions/05_pytorch_going_modular_exercise_solutions.ipynb @@ -6,7 +6,7 @@ "name": "05_pytorch_going_modular_exercise_solutions.ipynb", "provenance": [], "collapsed_sections": [], - "authorship_tag": "ABX9TyOjKWdp6s5XK207Q0fco0O9", + "authorship_tag": "ABX9TyMV7Vpu90H5EsauLjBra4IS", "include_colab_link": true }, "kernelspec": { @@ -32,7 +32,7 @@ { "cell_type": "markdown", "source": [ - "# 05. PyTorch Going Modular Exercise Solutions (work in progress)\n", + "# 05. PyTorch Going Modular Exercise Solutions\n", "\n", "Welcome to the 05. PyTorch Going Modular exercise solutions notebook.\n", "\n", @@ -41,7 +41,7 @@ "## Resources\n", "\n", "1. These exercises/solutions are based on [section 05. PyTorch Going Modular](https://www.learnpytorch.io/05_pytorch_going_modular/) of the Learn PyTorch for Deep Learning course by Zero to Mastery.\n", - "2. TK - See a live [walkthrough of the solutions (errors and all) on YouTube](https://youtu.be/vsFMF9wqWx0).\n", + "2. See a live [walkthrough of the solutions (errors and all) on YouTube](https://youtu.be/ijgFhMK3pp4).\n", "3. See [other solutions on the course GitHub](https://github.com/mrdbourke/pytorch-deep-learning/tree/main/extras/solutions)." ], "metadata": { @@ -103,7 +103,7 @@ }, "outputId": "b482f845-1f78-4b4f-826a-c0c050c1b6ef" }, - "execution_count": 1, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -126,7 +126,7 @@ "id": "WAtJ-n10BWHZ", "outputId": "9c9b896c-a339-4d9a-f76d-69bce5261961" }, - "execution_count": 2, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -150,7 +150,8 @@ " * Number of epochs to train for\n", " * Number of hidden units in the TinyVGG model\n", " * Keep the default values for each of the above arguments as what they already are (as in notebook 05).\n", - "* For example, you should be able to run something similar to the following line to train a TinyVGG model with a learning rate of 0.003 and a batch size of 64 for 20 epochs: `python train.py --learning_rate 0.003 batch_size 64 num_epochs 20`." + "* For example, you should be able to run something similar to the following line to train a TinyVGG model with a learning rate of 0.003 and a batch size of 64 for 20 epochs: `python train.py --learning_rate 0.003 batch_size 64 num_epochs 20`.\n", + "* **Note:** Since `train.py` leverages the other scripts we created in section 05, such as, `model_builder.py`, `utils.py` and `engine.py`, you'll have to make sure they're available to use too. You can find these in the [`going_modular` folder on the course GitHub](https://github.com/mrdbourke/pytorch-deep-learning/tree/main/going_modular/going_modular). " ], "metadata": { "id": "zjyn7LU3mvkR" @@ -230,7 +231,7 @@ "id": "QQ4GoYVpDg3g", "outputId": "11511586-1a10-43fd-b60b-81a9b32f5a8e" }, - "execution_count": 3, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -433,7 +434,7 @@ "id": "EzD2EHmsDqMg", "outputId": "8c15e6f3-14cf-444e-c246-defed3e81a29" }, - "execution_count": 4, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -510,7 +511,7 @@ "id": "V0jywo2jDx-d", "outputId": "ea63d29d-e4ce-4057-da82-5ea92c1a1e95" }, - "execution_count": 5, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -566,7 +567,7 @@ "id": "wk7FsALmD1pI", "outputId": "344661fd-f1b7-4cde-8f65-5c3b707023e2" }, - "execution_count": 6, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -699,7 +700,7 @@ }, "outputId": "aa595a1e-af61-4294-dcbd-6ebee5849fec" }, - "execution_count": 7, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -722,7 +723,7 @@ "id": "LzaJl39lC40N", "outputId": "a5cf39b4-b69c-4b32-9ce7-0f025a18d582" }, - "execution_count": 8, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -846,7 +847,7 @@ }, "outputId": "3baa1cd0-ebb3-410b-f6e5-ef50f9ad17a2" }, - "execution_count": 9, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -869,7 +870,7 @@ "id": "Zcvw9sitIn6r", "outputId": "dd388c00-a10f-4c14-bdd3-51f507e20a12" }, - "execution_count": 11, + "execution_count": null, "outputs": [ { "output_type": "stream", @@ -890,7 +891,7 @@ "metadata": { "id": "nwmoMhW8IqSu" }, - "execution_count": 10, + "execution_count": null, "outputs": [] } ]