Add missing arguments to torchmetrics.Accuracy()

This commit is contained in:
dawmro authored and GitHub committed 2022-12-13 06:00:45 +01:00
1 parent 049954396d
commit fa15a3a12f
1 file changed
+2 -2
@@ -244,7 +244,7 @@
"from torchmetrics import Accuracy\n",
"\n",
"## TODO: Uncomment this code to use the Accuracy function\n",
"# acc_fn = Accuracy().to(device) # send accuracy function to device\n",
"# acc_fn = Accuracy(task="multiclass", num_classes=2).to(device) # send accuracy function to device\n",
"# acc_fn"
],
"metadata": {
@@ -508,7 +508,7 @@
"from torchmetrics import Accuracy\n",
"\n",
"## TODO: uncomment the two lines below to send the accuracy function to the device\n",
"# acc_fn = Accuracy().to(device)\n",
"# acc_fn = Accuracy(task="multiclass", num_classes=4).to(device)\n",
"# acc_fn"
],
"metadata": {