mirror of
https://github.com/gsi-upm/sitc
synced 2024-11-21 22:12:30 +00:00
Added explanation in visualization of iris
This commit is contained in:
parent
a1abd4b766
commit
267421e5b8
@ -170,6 +170,8 @@
|
||||
"# x and y are all the samples from column 0 (sepal_length) and 1 (sepal_width) respectively\n",
|
||||
"x,y = iris.data[:,0], iris.data[:,1]\n",
|
||||
"\n",
|
||||
"#if you want to understand better this code, see what happens when you replace name by 0, 1, 2 in the line\n",
|
||||
"# cond = iris.target == name. \n",
|
||||
"for name in names:\n",
|
||||
" cond = iris.target == name\n",
|
||||
" plt.plot(x[cond], y[cond], linestyle='none', marker='o', label=iris.target_names[name])\n",
|
||||
@ -262,7 +264,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.5.5"
|
||||
"version": "3.7.1"
|
||||
},
|
||||
"latex_envs": {
|
||||
"LaTeX_envs_menu_present": true,
|
||||
|
Loading…
Reference in New Issue
Block a user