Skip to content

Commit bb61c34

Browse files
committed
some more -typos
1 parent 21c059d commit bb61c34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

03_pytorch_computer_vision.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,7 +2163,7 @@
21632163
"\n",
21642164
"Overfitting means our model is learning the training data well but those patterns aren't generalizing to the testing data.\n",
21652165
"\n",
2166-
"Two of the main to fix overfitting include:\n",
2166+
"Two of the main ways to fix overfitting include:\n",
21672167
"1. Using a smaller or different model (some models fit certain kinds of data better than others).\n",
21682168
"2. Using a larger dataset (the more data, the more chance a model has to learn generalizable patterns).\n",
21692169
"\n",
@@ -2306,7 +2306,7 @@
23062306
" self.classifier = nn.Sequential(\n",
23072307
" nn.Flatten(),\n",
23082308
" # Where did this in_features shape come from? \n",
2309-
" # It's because each layer of our network compresses and changes the shape of our inputs data.\n",
2309+
" # It's because each layer of our network compresses and changes the shape of our input data.\n",
23102310
" nn.Linear(in_features=hidden_units*7*7, \n",
23112311
" out_features=output_shape)\n",
23122312
" )\n",
@@ -3014,7 +3014,7 @@
30143014
"source": [
30153015
"Notice the change in the shapes of what's happening in and out of a `nn.MaxPool2d()` layer.\n",
30163016
"\n",
3017-
"The `kernel_size` of the `nn.MaxPool2d()` layer will effects the size of the output shape.\n",
3017+
"The `kernel_size` of the `nn.MaxPool2d()` layer will affect the size of the output shape.\n",
30183018
"\n",
30193019
"In our case, the shape halves from a `62x62` image to `31x31` image.\n",
30203020
"\n",
@@ -3050,7 +3050,7 @@
30503050
],
30513051
"source": [
30523052
"torch.manual_seed(42)\n",
3053-
"# Create a random tensor with a similiar number of dimensions to our images\n",
3053+
"# Create a random tensor with a similar number of dimensions to our images\n",
30543054
"random_tensor = torch.randn(size=(1, 1, 2, 2))\n",
30553055
"print(f\"Random tensor:\\n{random_tensor}\")\n",
30563056
"print(f\"Random tensor shape: {random_tensor.shape}\")\n",

0 commit comments

Comments
 (0)