Open AlJohri opened 5 years ago
I think we should just default n_jobs to None
, though I'm not sure it will change anything. From the joblib doc:
None is a marker for 'unset' that will be interpreted as n_jobs=1
(sequential execution) unless the call is performed under a
parallel_backend context manager that sets another value for
n_jobs.
you're welcome to open a PR for defaulting to None though
Open a PR for this issue #40
Even when
n_jobs
is not passed, skope-rules still uses joblib as per the logs. This is becausen_jobs
defaults to 1 within theSkopeRules
class:https://github.com/scikit-learn-contrib/skope-rules/blob/e7f7b932587545b8a947256e3b3c087eea0e1a94/skrules/skope_rules.py#L152
https://github.com/scikit-learn-contrib/skope-rules/blob/e7f7b932587545b8a947256e3b3c087eea0e1a94/skrules/skope_rules.py#L169
https://github.com/scikit-learn-contrib/skope-rules/blob/e7f7b932587545b8a947256e3b3c087eea0e1a94/skrules/skope_rules.py#L280
This should default to
None
and not be passed into theBaggingClassifier
andBaggingRegressor
if None to prevent triggering joblib. Something likeIf there's an easier way to do ^ please let me know.
This will prevent joblib from triggering at all in the case that
n_jobs
is None. Much easier to debug parallel processing issues like #18 when I can enable/disable joblib entirely.Happy to submit a PR for this!