Skip to content

Commit 67d04c6

Browse files
committed
Evaluate the CNN Model
1 parent 4cf7ca8 commit 67d04c6

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

lab2/solutions/PT_Part1_MNIST_Solution.ipynb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,13 @@
737737
"comet_model_2.log_figure(figure=plt)"
738738
]
739739
},
740+
{
741+
"cell_type": "markdown",
742+
"metadata": {},
743+
"source": [
744+
"### Evaluate the CNN Model"
745+
]
746+
},
740747
{
741748
"cell_type": "code",
742749
"execution_count": null,
@@ -745,9 +752,10 @@
745752
},
746753
"outputs": [],
747754
"source": [
748-
"'''TODO: Use the evaluate method to test the model!'''\n",
749-
"test_loss, test_acc = cnn_model.evaluate(test_images, test_labels)\n",
750-
"# test_loss, test_acc = # TODO\n",
755+
"'''TODO: Evaluate the CNN model'''\n",
756+
"\n",
757+
"test_loss, test_acc = evaluate(cnn_model, trainset_loader, loss_function)\n",
758+
"# test_loss, test_acc = TODO\n",
751759
"\n",
752760
"print('Test accuracy:', test_acc)"
753761
]

0 commit comments

Comments
 (0)