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:
@@ -201,8 +201,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)\n",
|
||||
"plt.rc('xtick', labelsize=10)\n",
|
||||
"plt.rc('ytick', labelsize=10)\n",
|
||||
"\n",
|
||||
"housing.hist(bins=50, figsize=(12, 8))\n",
|
||||
"save_fig(\"attribute_histogram_plots\") # not in the book\n",
|
||||
@@ -1196,7 +1196,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# not in the book – this code generates Figure 2–17\n",
|
||||
"fig, axs = plt.subplots(1, 2, figsize=(8,3), sharey=True)\n",
|
||||
"fig, axs = plt.subplots(1, 2, figsize=(8, 3), sharey=True)\n",
|
||||
"housing[\"population\"].hist(ax=axs[0], bins=50)\n",
|
||||
"housing[\"population\"].apply(np.log).hist(ax=axs[1], bins=50)\n",
|
||||
"axs[0].set_xlabel(\"Population\")\n",
|
||||
@@ -1270,7 +1270,7 @@
|
||||
"ax2 = ax1.twinx() # create a twin axis that shares the same x-axis\n",
|
||||
"color = \"blue\"\n",
|
||||
"ax2.plot(ages, rbf1, color=color, label=\"gamma = 0.10\")\n",
|
||||
"ax2.plot(ages, rbf2, color=color, label=\"gamma = 0.03\", linestyle=\"--\",)\n",
|
||||
"ax2.plot(ages, rbf2, color=color, label=\"gamma = 0.03\", linestyle=\"--\")\n",
|
||||
"ax2.tick_params(axis='y', labelcolor=color)\n",
|
||||
"ax2.set_ylabel(\"Age similarity\", color=color)\n",
|
||||
"\n",
|
||||
|
||||
Reference in New Issue
Block a user