I’m watching a great Hackaday Remoticon TinyML talk and of course trying to replicate it/experiment myself. I noticed that there is an “edit as an iPython notebook” option, so I downloaded the notebook, and here’s the problem: when running this cell
with open('x_train.npy', 'wb') as file: file.write(X) with open('y_train.npy', 'wb') as file: file.write(Y) X = np.load('x_train.npy') Y = np.load('y_train.npy')[:,0]
I’m getting a
Value Error "Cannot load file containing pickled data when allow_pickle=False".
I thought it was something that had changed in the NumPy
.load() function, so I tried forcing it to
allow_pickle = True, but that doesn’t work, either:
OSError: Failed to interpret file 'x_train.npy' as a pickle
The problem seems to be with the X values:
y_train.npy gets processed without any problem. The
y_train.npy file is almost 12 megabytes, meanwhile the
x_train.npy only 158 kilobytes, which makes me wonder if it gets created/downloaded properly.
Any idea what it could be?