I am getting the below error while loading files using cmd :
np.load(’/content/sample_submission_2.npz.1’, allow_pickle=True, mmap_mode=‘r’)[‘data’]
Have tried a few trouble shooting fixes, didn’t helped. Can any one suggest?
UnpicklingError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
446 try:
–> 447 return pickle.load(fid, **pickle_kwargs)
448 except Exception:UnpicklingError: invalid load key, ‘<’.
During handling of the above exception, another exception occurred:
OSError Traceback (most recent call last)
1 frames
/usr/local/lib/python3.7/dist-packages/numpy/lib/npyio.py in load(file, mmap_mode, allow_pickle, fix_imports, encoding)
448 except Exception:
449 raise IOError(
–> 450 “Failed to interpret file %s as a pickle” % repr(file))
451
452OSError: Failed to interpret file ‘/content/sample_submission_12.npz’ as a pickle