diff --git a/02_pytorch_classification.ipynb b/02_pytorch_classification.ipynb index 54d221d..e534b29 100644 --- a/02_pytorch_classification.ipynb +++ b/02_pytorch_classification.ipynb @@ -46,19 +46,25 @@ "source": [ "## TK - What we're going to cover\n", "\n", - "TK - include PyTorch workflow\n", + "In this notebook we're going to reiterate over the PyTorch workflow we coverd in notebook 01.\n", "\n", - "TODO\n", - "* Simple classification (reiterate PyTorch workflow)\n", - " * Binary classification\n", - " * Multi-class classification\n", - "* Writing device agnostic code\n", - " * Data on GPU\n", - " * Model on GPU\n", - "* More advanced classification (e.g. black and white images or FashionMNIST or FoodMNIST or something)\n", - "* Visualizing a PyTorch model (all of the different connections)\n", + "\n", "\n", - "\n" + "Except instead of trying to predict a straight line (predicting a number, also called a regression problem), we'll be working on a **classification problem**.\n", + "\n", + "Specifically, we're going to cover:\n", + "\n", + "| **Topic** | **Contents** |\n", + "| ----- | ----- |\n", + "| **0. Architecture of a classification neural network** | Neural networks can come in almost any shape or size, but they typically follow a similar floor plan. |\n", + "| **1. Getting binary classification data ready** | Data can be almost anything but to get started we're going to create a simple binary classification dataset. |\n", + "| **2. Building a PyTorch classification model** | Here we'll create a model to learn patterns in the data, we'll also choose a **loss function**, **optimizer** and build a **training loop** specific to classification. | \n", + "| **3. Fitting the model to data (training)** | We've got data and a model, now let's let the model (try to) find patterns in the (**training**) data. |\n", + "| **4. Making predictions and evaluating a model (inference)** | Our model's found patterns in the data, let's compare its findings to the actual (**testing**) data. |\n", + "| **5. Improving a model (from a model perspective)** | We've trained an evaluated a model but it's not working, let's try a few things to improve it. |\n", + "| **6. Non-linearity** | So far our model has only had the ability to model straight lines, what about non-linear (non-straight) lines? |\n", + "| **7. Replicating non-linear functions** | We used **non-linear functions** to help model non-linear data, but what do these look like? |\n", + "| **8. Putting it all together with multi-class classification** | Let's put everything we've done so far for binary classification together with a multi-class classification problem. |\n" ], "metadata": { "id": "9wTlTaDKH7Oj" @@ -83,7 +89,7 @@ { "cell_type": "markdown", "source": [ - "## TK - Architecture of a classification neural network\n", + "## TK - 0. Architecture of a classification neural network\n", "\n", "Before we get into writing code, let's look at the general architecture of a classification neural network.\n", "\n", @@ -162,7 +168,7 @@ "base_uri": "https://localhost:8080/" }, "id": "oAb8vcIhWEO8", - "outputId": "57973236-511d-4783-f218-702c967b8350" + "outputId": "2b70adac-1429-4f2b-b1e6-a5974e276375" }, "execution_count": 2, "outputs": [ @@ -199,7 +205,7 @@ "execution_count": 3, "metadata": { "id": "XAAqx_8sHC73", - "outputId": "4df79d7b-252b-4df2-d18e-14e350535eb4", + "outputId": "37a286bc-d5ef-4d0f-a829-1921e6257fb6", "colab": { "base_uri": "https://localhost:8080/", "height": 363 @@ -211,7 +217,7 @@ "data": { "text/html": [ "\n", - "