Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

n_jobs parameter for random forest to select all but one/two of the processors

I would like to set the n_jobs parameter to as close to -1 but not include all processors. If we are using a 16VCPU machine, would this be equivalent to selecting n_jobs to 15? What if we want to select all CPUS but two of the processors? n_jobs = 14?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

From https://scikit-learn.org/stable/glossary.html#term-n-jobs:

For n_jobs below -1, (n_cpus + 1 + n_jobs) are used. For example with n_jobs=-2, all CPUs but one are used.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading