Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG: remove n_jobs=-1 from examples

  • Loading branch information...
commit 13028c5bb3470a46f2530bd3c70ebebcfd8d63ba 1 parent 67cad73
@GaelVaroquaux GaelVaroquaux authored
View
2  examples/ensemble/plot_forest_importances_faces.py
@@ -19,7 +19,7 @@
from sklearn.ensemble import ExtraTreesClassifier
# Number of cores to use to perform parallel fitting of the forest model
-n_jobs = 2
+n_jobs = 1
# Loading the digits dataset
data = fetch_olivetti_faces()
View
2  examples/exercises/plot_cv_diabetes.py
@@ -26,7 +26,7 @@
for alpha in alphas:
lasso.alpha = alpha
- this_scores = cross_validation.cross_val_score(lasso, X, y, n_jobs=-1)
+ this_scores = cross_validation.cross_val_score(lasso, X, y, n_jobs=1)
scores.append(np.mean(this_scores))
scores_std.append(np.std(this_scores))
View
2  examples/exercises/plot_cv_digits.py
@@ -23,7 +23,7 @@
scores_std = list()
for C in C_s:
svc.C = C
- this_scores = cross_validation.cross_val_score(svc, X, y, n_jobs=-1)
+ this_scores = cross_validation.cross_val_score(svc, X, y, n_jobs=1)
scores.append(np.mean(this_scores))
scores_std.append(np.std(this_scores))
View
1  examples/plot_digits_pipe.py
@@ -49,7 +49,6 @@
###############################################################################
# Prediction
-scores = cross_validation.cross_val_score(pipe, X_digits, y_digits, n_jobs=-1)
from sklearn.grid_search import GridSearchCV
Please sign in to comment.
Something went wrong with that request. Please try again.