What does n_jobs=-1 change about a scikit-learn estimator such as RandomForestClassifier?
Correct answer
B. It spreads independent fits over all available cores, without changing the results
14 views
B. It spreads independent fits over all available cores, without changing the results
14 views
n_jobs controls joblib parallelism over independent tasks such as trees or folds, so results are unchanged apart from floating-point ordering. It cannot parallelise a single sequential estimator, and oversubscription with nested parallelism can make fits slower. In GridSearchCV the same parameter parallelises candidate fits rather than the model itself.
Asked in: NTS, PPSC IT, Interviews
Not sure why the answer is B? Ask here and get an explanation.