OSError:[Errno 28]设备上没有剩余空间

时间:2019-01-31 16:10:27

标签: python gridsearchcv

当我在某个时候使用gridSearch或randomSearch运行python程序时,出现此错误,这是什么意思,以及如何解决?磁盘空间很大,RAM为32GB,我不知道怎么回事。

File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/_memmapping_reducer.py", line 339, in __call__
    for dumped_filename in dump(a, filename):
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 502, in dump
    NumpyPickler(f, protocol=protocol).dump(value)
  File "/usr/lib/python3.5/pickle.py", line 408, in dump
    self.save(obj)
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 289, in save
    wrapper.write_array(obj, self)
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 104, in write_array
    pickler.file_handle.write(chunk.tostring('C'))
OSError: [Errno 28] No space left on device
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "main.py", line 502, in <module>
    neuralNetwork(dataset)
  File "main.py", line 245, in neuralNetwork
    best_model_temp=innerKeras(model, X_train, y_train, X_test, y_test)
  File "main.py", line 229, in innerKeras
    best_model,cv_results =ut.getBestModelAndResults(X_train,y_train,model, dataset.keras_param, useRandomSearch=True)
  File "/home/tombari/bankrupty/src/utility.py", line 203, in getBestModelAndResults
    grid=getRandomSearchCvAndFit(X_train,y_train,model, hyperparameters)
  File "/home/tombari/bankrupty/src/utility.py", line 188, in getRandomSearchCvAndFit
    random.fit(X_train, y_train)
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/model_selection/_search.py", line 722, in fit
    self._run_search(evaluate_candidates)
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/model_selection/_search.py", line 1515, in _run_search
    random_state=self.random_state))
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/model_selection/_search.py", line 711, in evaluate_candidates
    cv.split(X, y, groups)))
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/parallel.py", line 930, in __call__
    self.retrieve()
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/parallel.py", line 833, in retrieve
    self._output.extend(job.get(timeout=self.timeout))
  File "/home/tombari/.local/lib/python3.5/site-packages/sklearn/externals/joblib/_parallel_backends.py", line 521, in wrap_future_result
    return future.result(timeout=timeout)
  File "/usr/lib/python3.5/concurrent/futures/_base.py", line 398, in result

0 个答案:

没有答案