Yesterday I sucessfully loaded the IMDB dataset to my jupyter notebook, with the following code:
from __future__ import absolute_import, division, print_function, unicode_literals
import tensorflow as tf
from tensorflow import keras
import numpy as np
# save np.load
np_load_old = np.load
# modify the default parameters of np.load
np.load = lambda *a,**k: np_load_old(*a, allow_pickle=True, **k)
imdb = keras.datasets.imdb
(train_data, train_labels), (test_data, test_labels) = imdb.load_data(num_words=10000)
# restore np.load for future normal usage
np.load = np_load_old
Now he gives me the error:
TypeError: <lambda>() got multiple values for keyword argument 'allow_pickle'
What do I am missing here?
I am also following this thread.