Skip to content

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

@SimeonGeorgiev

Description

@SimeonGeorgiev

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions