Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some basic joblib questions... #50

Closed
vgoklani opened this issue Nov 28, 2012 · 1 comment
Closed

Some basic joblib questions... #50

vgoklani opened this issue Nov 28, 2012 · 1 comment

Comments

@vgoklani
Copy link

Hi,

I just recently discovered joblib, and I had a few quick questions.

  1. When I set n_jobs=-1 in multiprocessing, python uses 8 threads on my quad-core macbook pro. But with joblib.Parallel(n_jobs=-1), it appears to be using only 4 threads? This the same function, just called via joblib. The only reason I'm asking is that the sklearn random forests implementation (which presumably runs on top of joblib.parallel) uses all 8 threads. Am I doing something wrong?
  2. How do you specify the "chunk size" using joblib.Parallel?
  3. The kernel frequently dies when running joblib.Parallel in ipython notebook, although I've never had any such issues when running sklearn. Are there some tricks I should be aware of?

Thanks,

Vishal

@GaelVaroquaux
Copy link
Member

1: don't know

2: there is no notion of chunk size. It might be a useful addition, but it's not there

  1. Old versions of IPython notebook did not like forking. This has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants