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