Add a comment about sklearn.metrics.plot_confusion_matrix, fixes #142

This commit is contained in:
Aurélien Geron
2020-07-05 18:35:06 +12:00
parent cdfad2d003
commit 4a48d04a1a

View File

@@ -852,6 +852,7 @@
"metadata": {},
"outputs": [],
"source": [
"# since sklearn 0.22, you can use sklearn.metrics.plot_confusion_matrix()\n",
"def plot_confusion_matrix(matrix):\n",
" \"\"\"If you prefer color and a colorbar\"\"\"\n",
" fig = plt.figure(figsize=(8,8))\n",