Change test_pred to y_test in loss_fn()

This commit is contained in:
dawmro authored and GitHub committed 2022-12-16 09:02:02 +01:00
1 parent f971e71743
commit 700345caae
1 file changed
+1 -1
@@ -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",