Add a comment about sklearn.metrics.plot_confusion_matrix, fixes #142
parent
cdfad2d003
commit
4a48d04a1a
|
@ -852,6 +852,7 @@
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
"# since sklearn 0.22, you can use sklearn.metrics.plot_confusion_matrix()\n",
|
||||||
"def plot_confusion_matrix(matrix):\n",
|
"def plot_confusion_matrix(matrix):\n",
|
||||||
" \"\"\"If you prefer color and a colorbar\"\"\"\n",
|
" \"\"\"If you prefer color and a colorbar\"\"\"\n",
|
||||||
" fig = plt.figure(figsize=(8,8))\n",
|
" fig = plt.figure(figsize=(8,8))\n",
|
||||||
|
|
Loading…
Reference in New Issue