You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""
Traceback (most recent call last):
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 418, in _process_worker
r = call_item()
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/externals/loky/process_executor.py", line 272, in __call__returnself.fn(*self.args, **self.kwargs)
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/_parallel_backends.py", line 567, in __call__returnself.func(*args, **kwargs)
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/parallel.py", line 225, in __call__for func, args, kwargs inself.items]
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/parallel.py", line 225, in <listcomp>for func, args, kwargs inself.items]
File "/home/pierreglaser/repos/scikit-learn/sklearn/linear_model/coordinate_descent.py", line 997, in _path_residuals
copy=False)
File "/home/pierreglaser/repos/scikit-learn/sklearn/linear_model/base.py", line 527, in _pre_fit
check_input=check_input)
File "/home/pierreglaser/repos/scikit-learn/sklearn/linear_model/base.py", line 158, in _preprocess_data
X -= X_offset
ValueError: output array is read-only
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "bug.py", line 7, in <module>
clf.fit(X, y)
File "/home/pierreglaser/repos/scikit-learn/sklearn/linear_model/coordinate_descent.py", line 1195, in fit**_joblib_parallel_args(prefer="threads"))(jobs)
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/parallel.py", line 934, in __call__self.retrieve()
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/parallel.py", line 833, in retrieveself._output.extend(job.get(timeout=self.timeout))
File "/home/pierreglaser/.virtualenvs/sklearn_py36/lib/python3.6/site-packages/joblib/_parallel_backends.py", line 521, in wrap_future_resultreturn future.result(timeout=timeout)
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 432, in resultreturnself.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_resultraiseself._exception
ValueError: output array is read-only
The problem does not happen if the data is smaller -- My guess is that _pre_fit tries to modify in-place the input (in this case, _pre_fit is called with copy=False), which using loky and large data, is memmaped, thus read-only. Hence the error.
The text was updated successfully, but these errors were encountered:
running this script:
fails with:
The problem does not happen if the data is smaller -- My guess is that
_pre_fit
tries to modify in-place the input (in this case,_pre_fit
is called withcopy=False
), which usingloky
and large data, is memmaped, thus read-only. Hence the error.The text was updated successfully, but these errors were encountered: