-
-
Save rayryeng/221c6f291a5011625f15ef969392ab28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [15]: def unpickle(file): | |
...: with open(file, 'rb') as fo: | |
...: dict = pickle.load(fo) | |
...: return dict | |
...: | |
In [16]: data = unpickle('train') | |
In [17]: len(data) | |
Out[17]: 5 | |
In [18]: data.keys() | |
Out[18]: ['data', 'batch_label', 'fine_labels', 'coarse_labels', 'filenames'] | |
In [19]: data['data'].shape | |
Out[19]: (50000L, 3072L) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment