MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / get_data

Function get_data

cnn_class/benchmark.py:50–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49
50def get_data():
51 if not os.path.exists('../large_files/train_32x32.mat'):
52 print('Looking for ../large_files/train_32x32.mat')
53 print('You have not downloaded the data and/or not placed the files in the correct location.')
54 print('Please get the data from: http://ufldl.stanford.edu/housenumbers')
55 print('Place train_32x32.mat and test_32x32.mat in the folder large_files adjacent to the class folder')
56 exit()
57
58 train = loadmat('../large_files/train_32x32.mat')
59 test = loadmat('../large_files/test_32x32.mat')
60 return train, test
61
62
63def main():

Callers 6

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
keras_example.pyFile · 0.90
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected