File tree Expand file tree Collapse file tree 5 files changed +23
-0
lines changed Expand file tree Collapse file tree 5 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ def load_data(path="emnist_matlab.npz", type="balanced"):
46
46
Tuple of Numpy arrays: `(input_train, target_train),
47
47
(input_test, target_test)`.
48
48
"""
49
+ # Log about loading
50
+ logging .basicConfig (level = logging .INFO )
51
+ logging .info ('Loading dataset = emnist' )
52
+
53
+ # Load data
49
54
path = get_file (
50
55
path , origin = ("http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/"
51
56
"matlab.zip" )
Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ def load_data(path="iris.npz", test_split=0.2):
46
46
Target structure: 0 = iris setosa; 1 = iris versicolor;
47
47
2 = iris virginica.
48
48
"""
49
+ # Log about loading
50
+ logging .basicConfig (level = logging .INFO )
51
+ logging .info ('Loading dataset = iris' )
52
+
53
+ # Load data
49
54
path = get_file (
50
55
path ,
51
56
origin = ("http://archive.ics.uci.edu/ml/machine-learning-databases/"
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ def load_data(path="kmnist.npz", type="kmnist"):
42
42
Tuple of Numpy arrays: `(input_train, target_train),
43
43
(input_test, target_test)`.
44
44
"""
45
+ # Log about loading
46
+ logging .basicConfig (level = logging .INFO )
47
+ logging .info ('Loading dataset = kmnist' )
48
+
45
49
# Load training images
46
50
path_train = get_file (
47
51
f"{ path } _{ type } _train_imgs" ,
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ def load_data(path="stl10_matlab.tar.gz"):
47
47
Tuple of Numpy arrays: `(input_train, target_train),
48
48
(input_test, target_test)`.
49
49
"""
50
+ # Log about loading
51
+ logging .basicConfig (level = logging .INFO )
52
+ logging .info ('Loading dataset = stl-10' )
53
+
50
54
# Set local .tar.gz path and delete if already available
51
55
local_targz_path = "./stl-10"
52
56
shutil .rmtree (local_targz_path , ignore_errors = True )
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ def load_data(path="svhn_matlab.npz", type="normal"):
48
48
Tuple of Numpy arrays: `(input_train, target_train),
49
49
(input_test, target_test)`.
50
50
"""
51
+ # Log about loading
52
+ logging .basicConfig (level = logging .INFO )
53
+ logging .info ('Loading dataset = svhn' )
54
+
55
+ # Load data
51
56
path_train = get_file (
52
57
f"{ path } _train" , origin = ("http://ufldl.stanford.edu/housenumbers/"
53
58
"train_32x32.mat" )
You can’t perform that action at this time.
0 commit comments