mnists/mnists/__main__.py

14 lines
394 B
Python
Raw Normal View History

2018-03-14 08:16:14 -07:00
from . import metadata, prepare
2018-03-14 17:44:40 -07:00
names = ("train images", "train labels", "test images", "test labels")
2018-03-14 08:16:14 -07:00
for name in metadata.keys():
2018-03-14 17:44:40 -07:00
# verify every dataset, downloading if necessary.
# print out the shapes for use in the README.
print(f" * `{name}` ")
data = prepare(name)
for name, dat in zip(names, data):
print(f" {name} shape: {dat.shape} ")
print()