Skip to content

Instantly share code, notes, and snippets.

@alstat
Last active March 10, 2018 09:18
Show Gist options
  • Save alstat/3659ace479413d76c2c86fa76073f42a to your computer and use it in GitHub Desktop.
Save alstat/3659ace479413d76c2c86fa76073f42a to your computer and use it in GitHub Desktop.
items = [x_train, y_train, x_test, y_test]
# training set
[type(item) for item in items[:2]] # [<type 'numpy.ndarray'>, <type 'numpy.ndarray'>]
[item.shape for item in items[:2]] # [(50000, 32, 32, 3), (50000, 1)]
# testing set
[type(item) for item in items[2:]] # [<type 'numpy.ndarray'>, <type 'numpy.ndarray'>]
[item.shape for item in items[2:]] # [(10000, 32, 32, 3), (10000, 1)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment