Skip to content

Commit

Permalink
Iris-Virginica => Iris virginica (& same for versicolor and setosa)
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Aug 12, 2019
1 parent 8624a7f commit e0a1df5
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 99 deletions.
110 changes: 56 additions & 54 deletions 04_training_linear_models.ipynb

Large diffs are not rendered by default.

87 changes: 50 additions & 37 deletions 05_support_vector_machines.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions 06_decision_trees.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@
" custom_cmap2 = ListedColormap(['#7d7d58','#4c4c7f','#507d50'])\n",
" plt.contour(x1, x2, y_pred, cmap=custom_cmap2, alpha=0.8)\n",
" if plot_training:\n",
" plt.plot(X[:, 0][y==0], X[:, 1][y==0], \"yo\", label=\"Iris-Setosa\")\n",
" plt.plot(X[:, 0][y==1], X[:, 1][y==1], \"bs\", label=\"Iris-Versicolor\")\n",
" plt.plot(X[:, 0][y==2], X[:, 1][y==2], \"g^\", label=\"Iris-Virginica\")\n",
" plt.plot(X[:, 0][y==0], X[:, 1][y==0], \"yo\", label=\"Iris setosa\")\n",
" plt.plot(X[:, 0][y==1], X[:, 1][y==1], \"bs\", label=\"Iris versicolor\")\n",
" plt.plot(X[:, 0][y==2], X[:, 1][y==2], \"g^\", label=\"Iris virginica\")\n",
" plt.axis(axes)\n",
" if iris:\n",
" plt.xlabel(\"Petal length\", fontsize=14)\n",
Expand Down Expand Up @@ -369,7 +369,7 @@
}
],
"source": [
"X[(X[:, 1]==X[:, 1][y==1].max()) & (y==1)] # widest Iris-Versicolor flower"
"X[(X[:, 1]==X[:, 1][y==1].max()) & (y==1)] # widest Iris versicolor flower"
]
},
{
Expand Down
Loading

0 comments on commit e0a1df5

Please sign in to comment.