mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Align ConfusionMatrix() to stable version
This commit is contained in:
1 parent
f971e71743
commit
25b05581ba
1 file changed
+1
-1
@@ -3484,7 +3484,7 @@
|
||||
"from mlxtend.plotting import plot_confusion_matrix\n",
|
||||
"\n",
|
||||
"# 2. Setup confusion matrix instance and compare predictions to targets\n",
|
||||
"confmat = ConfusionMatrix(num_classes=len(class_names))\n",
|
||||
"confmat = ConfusionMatrix(num_classes=len(class_names), task='multiclass')\n",
|
||||
"confmat_tensor = confmat(preds=y_pred_tensor,\n",
|
||||
" target=test_data.targets)\n",
|
||||
"\n",
|
||||
|
||||
Reference in new issue
Block a user