2

当我用多处理支持训练我的模型时,它会在一段时间后出现这样的错误;

Failed to save <type 'numpy.ndarray'> to .npy file:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/numpy_pickle.py", line 271, in save
    obj, filename = self._write_array(obj, filename)
  File "/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/numpy_pickle.py", line 231, in _write_array
    self.np.save(filename, array)
  File "/usr/local/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 491, in save
    pickle_kwargs=pickle_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/numpy/lib/format.py", line 584, in write_array
    array.tofile(fp)
IOError: 495340 requested and 502 written

由于空间投入,我似乎有一个 IOError 但是当我检查df -h每个驱动器是否有足够的空间时。

我该如何解决这个问题?

4

0 回答 0