sklearn increasing number of jobs leads to slow training
问题 I've been trying to get sklearn to use more cpu cores during gridsearch (doing this on a Windows machine). Code is this: parameters = {'n_estimators': numpy.arange(1,10), 'max_depth':numpy.arange(1,10)} estimator = RandomForestClassifier(verbose=1) clf = grid_search.GridSearchCV(estimator, parameters, n_jobs=-1) clf.fit(features_train, labels_train) I'm testing this on a small dataset of only 100 samples. When n_jobs is set to 1 (default), everything proceeds as normal and finishes quickly.