deep-learning-with-python-notebooks
deep-learning-with-python-notebooks copied to clipboard
IMDB Data Read Error
Reading from imdb data set raises error as:
'charmap' codec can't decode byte 0x8d in position 194
Fix is to open file with utf-8 encoding with adding encoding definition in open.
encoding="utf-8"
I got an error using numpy=1.16.3 : keras imdb ValueError: Object arrays cannot be loaded when allow_pickle=False downgrading to numpy=1.16.2 solved the problem
You do not need to explicitly downgrade Numpy. Use the following code to 'allow_pickle':
old = np.load, np.load = lambda *a, **k:old(*a, **k, allow_pickle=TRUE), from keras.datasets import mnist, np.load=old, del(old)