Repository navigation
[MRG] New context manager API for joblib.Parallel - #221
Conversation
|
@arthurmensch if you want to try this branch of joblib with scikit-learn you can git clone joblib, checkout this branch then run try:
import joblib
from sklearn.externals import joblib as skl_joblib
print('Monkeypatching scikit-learn embedded joblib')
for k, v in vars(joblib).items():
setattr(skl_joblib, k, v)
del skl_joblib, joblib
except ImportError:
pass |
|
@GaelVaroquaux @lesteve you might want to have a quick look at this. Esp. the tests and the doc if you are in a hurry. |
There was a problem hiding this comment.
"to protect to coordinate". Did you mean to only use one of the two verbs?
There was a problem hiding this comment.
typo: available
typo: exception
c687d54 to
64d1292
Compare
|
@lesteve all comments are addressed and appveyor has run the tests under windows as well. Once merged I think we should release beta3 and sync sklearn to get the opportunity to test it. |
|
Merging, thanks! |
[MRG] New context manager API for joblib.Parallel
|
I'll do a release and open a PR in scikit-learn. |
|
Merging, thanks!
Awesome!
|
|
🍻 |
This should make it easier to use parallel calls interleaved in loop as done in scikit-learn/scikit-learn#4873 for instance (ping @arthurmensch).