mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
fix number of classes
This commit is contained in:
1 parent
f1f307d1c7
commit
85a99bc78e
1 file changed
+1
-1
@@ -1057,7 +1057,7 @@
|
||||
"# Let's calculate the accuracy for when we fit our model\n",
|
||||
"!pip -q install torchmetrics # colab doesn't come with torchmetrics\n",
|
||||
"from torchmetrics import Accuracy\n",
|
||||
"acc_fn = Accuracy(task=\"multiclass\", num_classes=4).to(device) # send accuracy function to device\n",
|
||||
"acc_fn = Accuracy(task=\"multiclass\", num_classes=3).to(device) # send accuracy function to device\n",
|
||||
"acc_fn"
|
||||
],
|
||||
"metadata": {
|
||||
|
||||
Reference in new issue
Block a user