diff --git a/extras/solutions/02_pytorch_classification_exercise_solutions.ipynb b/extras/solutions/02_pytorch_classification_exercise_solutions.ipynb index 94c3728..3f79724 100644 --- a/extras/solutions/02_pytorch_classification_exercise_solutions.ipynb +++ b/extras/solutions/02_pytorch_classification_exercise_solutions.ipynb @@ -1236,7 +1236,7 @@ " test_logits = model_1(X_test)\n", " test_pred = torch.softmax(test_logits, dim=1).argmax(dim=1)\n", " # 2. Caculate loss and acc\n", - " test_loss = loss_fn(test_logits, test_pred)\n", + " test_loss = loss_fn(test_logits, y_test)\n", " test_acc = acc_fn(test_pred, y_test)\n", "\n", " # Print out what's happening\n",