fchollet / deep-learning-with-python-notebooks

Jupyter notebooks for the code samples of the book "Deep Learning with Python"
MIT License
18.17k stars 8.53k forks source link

6.3: AttributeError: module 'numpy.random' has no attribute 'randit' #99

Closed combstraight closed 5 years ago

combstraight commented 5 years ago

Hello,

I am currently getting the error: AttributeError: module 'numpy.random' has no attribute 'randit' when running model.fit_generator(). However, the numpy.random.randit() works fine when we call generator() directly.

I have run pip3 install numpy as well as python3 -m pip install numpy to make sure numpy is update.

I am currently running a jupyter notebook on a Ubuntu 16.04 machine.

combstraight commented 5 years ago

I have solved the problem by simply copy and pasting the exact code from the Jupyter notebook hosted on the github instead of manually writing it out on my notebook. Still a curious error. I will keep this issue open for 24 hours to invite any best guesses for the error.

shukkkur commented 1 year ago

@combstraight bro you misspelled randiNt

np.random.randint
ifond commented 1 year ago

​ I have received your E-mail——Steven Lee