Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'mnist' has no attribute 'train_images' #19

Open
AR3342 opened this issue Jun 12, 2018 · 0 comments
Open

AttributeError: module 'mnist' has no attribute 'train_images' #19

AR3342 opened this issue Jun 12, 2018 · 0 comments

Comments

@AR3342
Copy link

AR3342 commented Jun 12, 2018

Hello,
I got this error: AttributeError: module 'mnist' has no attribute 'train_images'
when I ran this code:
import mnist
import itertools
import numpy as np

def prepare_data(images, labels):
images = map(lambda a: a / 255.0, map(np.asarray, map(list, map(itertools.chain.from_iterable, images))))
return list(zip(images, labels))

train = prepare_data(mnist.train_images(), mnist.train_labels())
test = prepare_data(mnist.test_images(), mnist.test_labels())

Can you please help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant