parallel execution for permutation_importance#244
parallel execution for permutation_importance#244luoq wants to merge 8 commits intoTeamHG-Memex:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #244 +/- ##
==========================================
- Coverage 97.26% 96.88% -0.39%
==========================================
Files 44 44
Lines 2851 2855 +4
Branches 541 542 +1
==========================================
- Hits 2773 2766 -7
- Misses 41 48 +7
- Partials 37 41 +4
|
eli5/permutation_importance.py
Outdated
|
|
||
| import numpy as np # type: ignore | ||
| from sklearn.utils import check_random_state # type: ignore | ||
| from sklearn.externals.joblib import Parallel, delayed |
There was a problem hiding this comment.
I think you can add # type: ignore to this line to make type checks pass
|
Thanks, looks like a great feature! Tests are failing in Python 2.7; I'm not sure what it takes to make it work. Does it at least work with n_jobs=1? |
|
It seems in py2 instance method cannot be pickled in default. https://gist.github.com/luoq/703ec045827caf5a504ff97376db9c3e |
|
Are you still working on this? Would be very useful. |
|
will you drop python2 soon, so this pr gets merged? |
|
shall we switch this to use https://joblib.readthedocs.io/en/latest/parallel.html instead? |
|
Can I ask what happened to this? Is there now a way to use |
No description provided.