add allow_pickle for reuters

This commit is contained in:
Sigrid Keydana 2019-06-05 15:44:11 +02:00
parent 8b7052c4d8
commit 4f3262d439

View File

@ -80,7 +80,7 @@ def load_data(path='reuters.npz',
path, path,
origin=origin_folder + 'reuters.npz', origin=origin_folder + 'reuters.npz',
file_hash='87aedbeb0cb229e378797a632c1997b6') file_hash='87aedbeb0cb229e378797a632c1997b6')
with np.load(path) as f: with np.load(path, allow_pickle = True) as f:
xs, labels = f['x'], f['y'] xs, labels = f['x'], f['y']
np.random.seed(seed) np.random.seed(seed)