Pull request regarding issue #333. 
I believe adding in the additional parameters would help those learning who wish to use the torchmetrics library.
This commit is contained in:
Kim Hyun Bin authored and GitHub committed 2023-03-09 16:30:54 +09:00
1 parent 29595a60dc
commit 8558ca095a
1 file changed
+1 -1
+1 -1
View File
@@ -993,7 +993,7 @@
"outputs": [],
"source": [
"# Import accuracy metric\n",
"from helper_functions import accuracy_fn # Note: could also use torchmetrics.Accuracy()\n",
"from helper_functions import accuracy_fn # Note: could also use torchmetrics.Accuracy(task = 'multiclass', num_classes=len(class_names)).to(device)\n",
"\n",
"# Setup loss function and optimizer\n",
"loss_fn = nn.CrossEntropyLoss() # this is also called \"criterion\"/\"cost function\" in some places\n",