mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Issue #333
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:
1 parent
29595a60dc
commit
8558ca095a
1 file changed
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user