You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ Hi there, and welcome to the `extra-keras-datasets` module! This extension to th
23
23
*[SVHN-Normal](#svhn-normal)
24
24
*[SVHN-Extra](#svhn-extra)
25
25
*[STL-10](#stl-10)
26
+
*[Iris](#iris)
26
27
-[Contributors and other references](#contributors-and-other-references)
27
28
-[License](#license)
28
29
@@ -167,6 +168,20 @@ from extra-keras-datasets import stl10
167
168
168
169
---
169
170
171
+
### Iris
172
+
This is perhaps the best known database to be found in the pattern recognition literature. Fisher's paper is a classic in the field and is referenced frequently to this day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other.
* Cohen, G., Afshar, S., Tapson, J., & van Schaik, A. (2017). EMNIST: an extension of MNIST to handwritten letters. Retrieved from http://arxiv.org/abs/1702.05373
Description: The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant.
5
+
6
+
~~~ Important note ~~~
7
+
Please cite the following paper when using or referencing the dataset:
8
+
Fisher,R.A. "The use of multiple measurements in taxonomic problems" Annual Eugenics, 7, Part II, 179-188 (1936); also in "Contributions to Mathematical Statistics" (John Wiley, NY, 1950).
9
+
'''
10
+
11
+
fromkeras.utils.data_utilsimportget_file
12
+
importnumpyasnp
13
+
importmath
14
+
15
+
defload_data(path='iris.npz', test_split=0.2):
16
+
'''Loads the Iris dataset.
17
+
# Arguments
18
+
path: path where to cache the dataset locally
19
+
(relative to ~/.keras/datasets).
20
+
test_split: percentage of data to use for testing (by default 20%)
21
+
# Returns
22
+
Tuple of Numpy arrays: `(input_train, target_train), (input_test, target_test)`.
0 commit comments