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"):
4646 Tuple of Numpy arrays: `(input_train, target_train),
4747 (input_test, target_test)`.
4848 """
49+ # Log about loading
50+ logging .basicConfig (level = logging .INFO )
51+ logging .info ('Loading dataset = emnist' )
52+
53+ # Load data
4954 path = get_file (
5055 path , origin = ("http://www.itl.nist.gov/iaui/vip/cs_links/EMNIST/"
5156 "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):
4646 Target structure: 0 = iris setosa; 1 = iris versicolor;
4747 2 = iris virginica.
4848 """
49+ # Log about loading
50+ logging .basicConfig (level = logging .INFO )
51+ logging .info ('Loading dataset = iris' )
52+
53+ # Load data
4954 path = get_file (
5055 path ,
5156 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"):
4242 Tuple of Numpy arrays: `(input_train, target_train),
4343 (input_test, target_test)`.
4444 """
45+ # Log about loading
46+ logging .basicConfig (level = logging .INFO )
47+ logging .info ('Loading dataset = kmnist' )
48+
4549 # Load training images
4650 path_train = get_file (
4751 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"):
4747 Tuple of Numpy arrays: `(input_train, target_train),
4848 (input_test, target_test)`.
4949 """
50+ # Log about loading
51+ logging .basicConfig (level = logging .INFO )
52+ logging .info ('Loading dataset = stl-10' )
53+
5054 # Set local .tar.gz path and delete if already available
5155 local_targz_path = "./stl-10"
5256 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"):
4848 Tuple of Numpy arrays: `(input_train, target_train),
4949 (input_test, target_test)`.
5050 """
51+ # Log about loading
52+ logging .basicConfig (level = logging .INFO )
53+ logging .info ('Loading dataset = svhn' )
54+
55+ # Load data
5156 path_train = get_file (
5257 f"{ path } _train" , origin = ("http://ufldl.stanford.edu/housenumbers/"
5358 "train_32x32.mat" )
You can’t perform that action at this time.
0 commit comments