File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1414from tensorflow .keras .utils import get_file
1515import numpy as np
1616import math
17+ import logging
18+
19+
20+ def warn_citation ():
21+ """Warns about citation requirements
22+ # Returns
23+ Void
24+ """
25+ logging .warning (("Please cite the following paper when using or"
26+ " referencing this Extra Keras Dataset:" ))
27+ logging .warning (
28+ ("Fisher,R.A. \" The use of multiple measurements in taxonomic "
29+ "problems\" Annual Eugenics, 7, Part II, 179-188 (1936); also "
30+ "in \" Contributions to Mathematical Statistics\" (John Wiley"
31+ ", NY, 1950)." )
32+ )
1733
1834
1935def load_data (path = "iris.npz" , test_split = 0.2 ):
@@ -64,6 +80,9 @@ def load_data(path="iris.npz", test_split=0.2):
6480 target_train = [i [4 ] for i in training_data ]
6581 target_test = [i [4 ] for i in testing_data ]
6682
83+ # Warn about citation
84+ warn_citation ()
85+
6786 # Return data
6887 return (input_train , target_train ), (input_test , target_test )
6988
You can’t perform that action at this time.
0 commit comments