From 09c9108a067a546ac50ad5cae042989730bab5fe Mon Sep 17 00:00:00 2001 From: mustious Date: Mon, 24 Apr 2023 00:01:37 +0100 Subject: [PATCH 1/3] ConfusionMatrix is contained in torchmetrics library --- 03_pytorch_computer_vision.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/03_pytorch_computer_vision.ipynb b/03_pytorch_computer_vision.ipynb index 18892aa..5ef25b9 100644 --- a/03_pytorch_computer_vision.ipynb +++ b/03_pytorch_computer_vision.ipynb @@ -3316,6 +3316,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "ab108078-6770-4cb9-ac62-a761ff159aba", "metadata": {}, @@ -3330,7 +3331,7 @@ "\n", "To make a confusion matrix, we'll go through three steps:\n", "1. Make predictions with our trained model, `model_2` (a confusion matrix compares predictions to true labels).\n", - "2. Make a confusion matrix using [`torch.ConfusionMatrix`](https://torchmetrics.readthedocs.io/en/latest/references/modules.html?highlight=confusion#confusionmatrix).\n", + "2. Make a confusion matrix using [`torchmetrics.ConfusionMatrix`](https://torchmetrics.readthedocs.io/en/latest/references/modules.html?highlight=confusion#confusionmatrix).\n", "3. Plot the confusion matrix using [`mlxtend.plotting.plot_confusion_matrix()`](http://rasbt.github.io/mlxtend/user_guide/plotting/plot_confusion_matrix/).\n", "\n", "Let's start by making predictions with our trained model." From 783d59fc070b250e8810eb96714ecbe4b43bc264 Mon Sep 17 00:00:00 2001 From: mustious Date: Mon, 24 Apr 2023 11:18:09 +0100 Subject: [PATCH 2/3] [typo] manual_transform ===> manual_transforms --- 06_pytorch_transfer_learning.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/06_pytorch_transfer_learning.ipynb b/06_pytorch_transfer_learning.ipynb index f3cd233..77ae23c 100644 --- a/06_pytorch_transfer_learning.ipynb +++ b/06_pytorch_transfer_learning.ipynb @@ -428,6 +428,7 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "cd676c4f-6f81-4bfb-a578-8f3d5cd2bd4a", "metadata": {}, @@ -440,7 +441,7 @@ "\n", "We'll set `batch_size=32` so our model see's mini-batches of 32 samples at a time.\n", "\n", - "And we can transform our images using the transform pipeline we created above by setting `transform=manual_transform`.\n", + "And we can transform our images using the transform pipeline we created above by setting `transform=manual_transforms`.\n", "\n", "> **Note:** I've included this manual creation of transforms in this notebook because you may come across resources that use this style. It's also important to note that because these transforms are manually created, they're also infinitely customizable. So if you wanted to included data augmentation techniques in your transforms pipeline, you could." ] From 5c8701abf67e48d3ca20bc99f82d78bf969e5e1b Mon Sep 17 00:00:00 2001 From: mustious Date: Mon, 24 Apr 2023 22:18:52 +0100 Subject: [PATCH 3/3] [typo] pretrai ed --- 06_pytorch_transfer_learning.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/06_pytorch_transfer_learning.ipynb b/06_pytorch_transfer_learning.ipynb index 77ae23c..84b4692 100644 --- a/06_pytorch_transfer_learning.ipynb +++ b/06_pytorch_transfer_learning.ipynb @@ -715,11 +715,12 @@ ] }, { + "attachments": {}, "cell_type": "markdown", "id": "06f6dc93-8e39-4394-ad45-30730c40fa72", "metadata": {}, "source": [ - "> **Note:** In previous versions of `torchvision`, you'd create a prertained model with code like:\n", + "> **Note:** In previous versions of `torchvision`, you'd create a pretrained model with code like:\n", ">\n", "> `model = torchvision.models.efficientnet_b0(pretrained=True).to(device)`\n", ">\n",