scikit learn - sklearn random forest not parallelizing -


i'm using sklearn 0.16 on ubuntu 12.04 , running:

from sklearn.ensemble import randomforestclassifier import numpy np x=np.random.rand(5000,500) y=(np.random.rand(5000).round()) randomforestclassifier(n_jobs=10,n_estimators=1000).fit(x,y) 

however it's not using cores, , takes same time n_jobs=1. ideas on how debug what's going on here?

this screenshot shows other things running busy, htop has been showing available cpus:

enter image description here

try :

import affinity import multiprocessing affinity.set_process_affinity_mask(0, 2**multiprocessing.cpu_count()-1) 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -