8000 [ATTEMPTED FIX] Do not set n_jobs to -1 · scikit-learn/scikit-learn@ae483ae · GitHub
[go: up one dir, main page]

Skip to content

Commit ae483ae

Browse files
committed
[ATTEMPTED FIX] Do not set n_jobs to -1
1 parent bc9e73c commit ae483ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/tutorial/statistical_inference/model_selection.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ methods.
8989
>>> cross_val_score(svc, X_digits, y_digits, cv=k_fold, n_jobs=-1)
9090
array([ 0.93489149, 0.95659432, 0.93989983])
9191

92+
`n_jobs=-1` means that the computation will be dispatched on all the CPUs
93+
of the computer.
94+
9295
Alternatively, the ``scoring`` argument can be provided to specify an alternative
9396
scoring method.
9497

95-
>>> cross_val_score(svc, X_digits, y_digits, cv=k_fold, scoring='precision_macro',
96-
... n_jobs=-1)
98+
>>> cross_val_score(svc, X_digits, y_digits, cv=k_fold,
99+
... scoring='precision_macro')
97100
array([ 0.93969761, 0.95911415, 0.94041254])
98101

99-
`n_jobs=-1` means that the computation will be dispatched on all the CPUs
100-
of the computer.
101-
102102
**Cross-validation generators**
103103

104104

< 31F6 div class="diff-text-inner color-fg-muted">

0 commit comments

Comments
 (0)
0