omadson / scikit-mlm

Minimal Learning Machine implementation using the scikit-learn API.

Home Page:https://pypi.org/project/scikit-mlm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ON-MLM error for 'adu' dataset running on Google colab

AtillaMaia opened this issue · comments

The following error was got:

adu, ON
exception calling callback for <Future at 0x7f1b74b5c550 state=finished raised TerminatedWorkerError>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/_base.py", line 625, in _invoke_callbacks
callback(self)
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 309, in call
self.parallel.dispatch_next()
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 731, in dispatch_next
if not self.dispatch_one_batch(self._original_iterator):
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 759, in dispatch_one_batch
self._dispatch(tasks)
File "/usr/local/lib/python3.6/dist-packages/joblib/parallel.py", line 716, in _dispatch
job = self._backend.apply_async(batch, callback=cb)
File "/usr/local/lib/python3.6/dist-packages/joblib/_parallel_backends.py", line 510, in apply_async
future = self._workers.submit(SafeFunction(func))
File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/reusable_executor.py", line 151, in submit
fn, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py", line 1022, in submit
raise self._flags.broken
joblib.externals.loky.process_executor.TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker. The exit codes of the workers are {SIGKILL(-9)}
/usr/local/lib/python3.6/dist-packages/sklearn/model_selection/_validation.py:528: FutureWarning: From version 0.22, errors during fit will result in a cross validation score of NaN by default. Use error_score='raise' if you want an exception raised or error_score=np.nan to adopt the behavior from version 0.22.
FutureWarning)

TerminatedWorkerError Traceback (most recent call last)
in ()
22 clf = make_pipeline(MinMaxScaler(), gs)
23
---> 24 scores = cross_validate(clf, X, y, cv=kf, scoring=['accuracy'], return_estimator=True)
25
26 get_clf_metrics(scores).to_hdf(dt_stored, key=model_name)

/usr/local/lib/python3.6/dist-packages/joblib/externals/loky/process_executor.py in submit(self, fn, *args, **kwargs)
1020 with self._flags.shutdown_lock:
1021 if self._flags.broken is not None:
-> 1022 raise self._flags.broken
1023 if self._flags.shutdown:
1024 raise ShutdownExecutorError(

TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker. The exit codes of the workers are {SIGKILL(-9)}