mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Remove redundant comment
This commit is contained in:
@@ -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)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user