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

Parallel computation of Jaccard index uses up server resources. Proposed solution. #11

Open
SimeonGeorgiev opened this issue Apr 27, 2018 · 0 comments

Comments

@SimeonGeorgiev
Copy link

When I run the algorithm and set n_jobs I find that there are more processes than expected. I believe that this is why this happens:
File: PhenoGraph/phenograph/core.py
135: with closing(Pool()) as pool: # replace with: with closing(Pool(n_jobs)) as pool:
136: jaccard_values = pool.starmap(calc_jaccard, zip(range(n), repeat(idx)))

I can correct this in my clone of the library. Is there a reason why you can't set the maximum number of jobs for this process pool?

@SimeonGeorgiev SimeonGeorgiev changed the title Parallel computation of Jaccard index sucks up server resources. Proposed solution. Parallel computation of Jaccard index uses up server resources. Proposed solution. May 8, 2018
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

1 participant