Skip to content

Commit c42ec15

Browse files
committed
Fixed confusion matrix labels
1 parent dbbf4aa commit c42ec15

8 files changed

+225
-281
lines changed

03 - Classification.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,8 @@
946946
"tick_marks = np.arange(len(penguin_classes))\n",
947947
"plt.xticks(tick_marks, penguin_classes, rotation=45)\n",
948948
"plt.yticks(tick_marks, penguin_classes)\n",
949-
"plt.xlabel(\"Actual Species\")\n",
950-
"plt.ylabel(\"Predicted Species\")\n",
949+
"plt.xlabel(\"Predicted Species\")\n",
950+
"plt.ylabel(\"Actual Species\")\n",
951951
"plt.show()"
952952
]
953953
},
@@ -1083,8 +1083,8 @@
10831083
"tick_marks = np.arange(len(penguin_classes))\n",
10841084
"plt.xticks(tick_marks, penguin_classes, rotation=45)\n",
10851085
"plt.yticks(tick_marks, penguin_classes)\n",
1086-
"plt.xlabel(\"Actual Species\")\n",
1087-
"plt.ylabel(\"Predicted Species\")\n",
1086+
"plt.xlabel(\"Predicted Species\")\n",
1087+
"plt.ylabel(\"Actual Species\")\n",
10881088
"plt.show()"
10891089
]
10901090
},

05b - Convolutional Neural Networks (PyTorch).ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,8 @@
415415
"tick_marks = np.arange(len(classes))\n",
416416
"plt.xticks(tick_marks, classes, rotation=45)\n",
417417
"plt.yticks(tick_marks, classes)\n",
418-
"plt.xlabel(\"Actual Shape\")\n",
419-
"plt.ylabel(\"Predicted Shape\")\n",
418+
"plt.xlabel(\"Predicted Shape\")\n",
419+
"plt.ylabel(\"Actual Shape\")\n",
420420
"plt.show()"
421421
]
422422
},
@@ -572,4 +572,4 @@
572572
},
573573
"nbformat": 4,
574574
"nbformat_minor": 2
575-
}
575+
}

05b - Convolutional Neural Networks (Tensorflow).ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@
288288
"tick_marks = np.arange(len(classnames))\n",
289289
"plt.xticks(tick_marks, classnames, rotation=85)\n",
290290
"plt.yticks(tick_marks, classnames)\n",
291-
"plt.xlabel(\"Actual Shape\")\n",
292-
"plt.ylabel(\"Predicted Shape\")\n",
291+
"plt.xlabel(\"Predicted Shape\")\n",
292+
"plt.ylabel(\"Actual Shape\")\n",
293293
"plt.show()"
294294
]
295295
},

05c - Transfer Learning (PyTorch).ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@
379379
"tick_marks = np.arange(len(classes))\n",
380380
"plt.xticks(tick_marks, classes, rotation=45)\n",
381381
"plt.yticks(tick_marks, classes)\n",
382-
"plt.xlabel(\"Actual Shape\")\n",
383-
"plt.ylabel(\"Predicted Shape\")\n",
382+
"plt.xlabel(\"Predicted Shape\")\n",
383+
"plt.ylabel(\"Actual Shape\")\n",
384384
"plt.show()"
385385
]
386386
},
@@ -502,4 +502,4 @@
502502
},
503503
"nbformat": 4,
504504
"nbformat_minor": 2
505-
}
505+
}

05c - Transfer Learning (Tensorflow).ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@
274274
"tick_marks = np.arange(len(classnames))\n",
275275
"plt.xticks(tick_marks, classnames, rotation=85)\n",
276276
"plt.yticks(tick_marks, classnames)\n",
277-
"plt.xlabel(\"Actual Shape\")\n",
278-
"plt.ylabel(\"Predicted Shape\")\n",
277+
"plt.xlabel(\"Predicted Shape\")\n",
278+
"plt.ylabel(\"Actual Shape\")\n",
279279
"plt.show()"
280280
]
281281
},
@@ -387,4 +387,4 @@
387387
},
388388
"nbformat": 4,
389389
"nbformat_minor": 2
390-
}
390+
}

0 commit comments

Comments
 (0)