scikit-learn/scikit-learn — Issue #622: RandomForrestClassifier for n_jobs != 1
Author: vicpara
Created: 2012-02-12 21:03:10+00:00
State: open

Hi,
I'm using a RandomForestClassifier with n_jobs =-1. I have also tried values != 1 with the same effect.
The problem is that python process gets replicated infinitely until the OS crashes. There are no loops in my code which reads like this:

1. init the RandomForest
2. Load the data
3. Prepare the data
4. predictor.fit_transform(X,y)
5. print some predictor parameters

It seems that all the processes start from very beginning and when they reach the 4th step...they replicate again. I end up soon having tens of processes running over and over again. 5th step never gets executed.
When I have set the n_jobs =1 everything works fine.

I'm running Win 7 x64, Python 2.7.2 32bit with scikit 0.10