()
| 48 | |
| 49 | |
| 50 | def 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 | |
| 63 | def main(): |
no outgoing calls
no test coverage detected