mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Change test_pred to y_test in loss_fn()
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user