Remove redundant comment

This commit is contained in:
Aurélien Geron
2021-12-08 15:16:42 +13:00
parent 146e6fc062
commit 3552690321
6 changed files with 25 additions and 32 deletions

View File

@@ -89,8 +89,8 @@
"plt.rc('font', size=14)\n",
"plt.rc('axes', labelsize=14, titlesize=14)\n",
"plt.rc('legend', fontsize=14)\n",
"plt.rc('xtick',labelsize=10)\n",
"plt.rc('ytick',labelsize=10)"
"plt.rc('xtick', labelsize=10)\n",
"plt.rc('ytick', labelsize=10)"
]
},
{
@@ -1471,7 +1471,7 @@
"shifted_image_down = shift_image(image, 0, 5)\n",
"shifted_image_left = shift_image(image, -5, 0)\n",
"\n",
"plt.figure(figsize=(12,3))\n",
"plt.figure(figsize=(12, 3))\n",
"plt.subplot(131)\n",
"plt.title(\"Original\")\n",
"plt.imshow(image.reshape(28, 28),\n",
@@ -2045,7 +2045,7 @@
"plt.figure(figsize=(8, 4))\n",
"plt.plot([1]*10, svm_scores, \".\")\n",
"plt.plot([2]*10, forest_scores, \".\")\n",
"plt.boxplot([svm_scores, forest_scores], labels=(\"SVM\",\"Random Forest\"))\n",
"plt.boxplot([svm_scores, forest_scores], labels=(\"SVM\", \"Random Forest\"))\n",
"plt.ylabel(\"Accuracy\")\n",
"plt.show()"
]
@@ -2321,7 +2321,7 @@
"outputs": [],
"source": [
"for header, value in spam_emails[0].items():\n",
" print(header,\":\",value)"
" print(header, \":\", value)"
]
},
{