diff --git a/02_pytorch_classification.ipynb b/02_pytorch_classification.ipynb index c97a3a1..2c052a4 100644 --- a/02_pytorch_classification.ipynb +++ b/02_pytorch_classification.ipynb @@ -1222,7 +1222,7 @@ "* If `y_pred_probs` >= 0.5, `y=1` (class 1)\n", "* If `y_pred_probs` < 0.5, `y=0` (class 0)\n", "\n", - "To turn our prediction probabilities in prediction labels, we can round the outputs of the sigmoid activation function." + "To turn our prediction probabilities into prediction labels, we can round the outputs of the sigmoid activation function." ] }, { @@ -1309,9 +1309,9 @@ "id": "NXqUulG3maPH" }, "source": [ - "This means we'll be able to compare our models predictions to the test labels to see how well it's going. \n", + "This means we'll be able to compare our model's predictions to the test labels to see how well it's performing. \n", "\n", - "To recap, we converted our model's raw outputs (logits) to predicition probabilities using a sigmoid activation function.\n", + "To recap, we converted our model's raw outputs (logits) to prediction probabilities using a sigmoid activation function.\n", "\n", "And then converted the prediction probabilities to prediction labels by rounding them.\n", "\n", @@ -1566,8 +1566,8 @@ "\n", "| Model improvement technique* | What does it do? |\n", "| ----- | ----- |\n", - "| **Add more layers** | Each layer *potentially* increases the learning capabilities of the model with each layer being able to learn some kind of new pattern in the data, more layers is often referred to as making your neural network *deeper*. |\n", - "| **Add more hidden units** | Similar to the above, more hidden units per layer means a *potential* increase in learning capabilities of the model, more hidden units is often referred to as making your neural network *wider*. |\n", + "| **Add more layers** | Each layer *potentially* increases the learning capabilities of the model with each layer being able to learn some kind of new pattern in the data. More layers are often referred to as making your neural network *deeper*. |\n", + "| **Add more hidden units** | Similar to the above, more hidden units per layer means a *potential* increase in learning capabilities of the model. More hidden units are often referred to as making your neural network *wider*. |\n", "| **Fitting for longer (more epochs)** | Your model might learn more if it had more opportunities to look at the data. |\n", "| **Changing the activation functions** | Some data just can't be fit with only straight lines (like what we've seen), using non-linear activation functions can help with this (hint, hint). |\n", "| **Change the learning rate** | Less model specific, but still related, the learning rate of the optimizer decides how much a model should change its parameters each step, too much and the model overcorrects, too little and it doesn't learn enough. |\n", @@ -1704,7 +1704,7 @@ " ### Training\n", " # 1. Forward pass\n", " y_logits = model_1(X_train).squeeze()\n", - " y_pred = torch.round(torch.sigmoid(y_logits)) # logits -> predicition probabilities -> prediction labels\n", + " y_pred = torch.round(torch.sigmoid(y_logits)) # logits -> prediction probabilities -> prediction labels\n", "\n", " # 2. Calculate loss/accuracy\n", " loss = loss_fn(y_logits, y_train)\n",