8000 DOC: updating GridSearchCV's n_jobs parameter · scikit-learn/scikit-learn@ec0111c · GitHub
[go: up one dir, main page]

Skip to content

Commit ec0111c

Browse files
committed
DOC: updating GridSearchCV's n_jobs parameter
fixes #5797
1 parent dd2e48c commit ec0111c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

sklearn/grid_search.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,18 @@ class GridSearchCV(BaseSearchCV):
AB5D
670670
fit_params : dict, optional
671671
Parameters to pass to the fit method.
672672
673-
n_jobs : int, default=1
674-
Number of jobs to run in parallel.
675-
673+
n_jobs: int, default: 1 :
674+
The maximum number of concurrently running jobs.
675+
676+
- If -1 all CPUs are used.
677+
678+
- If 1 is given, no parallel computing code is used at all,
679+
which is useful for debugging.
680+
681+
- For n_jobs below -1, (n_cpus + 1 + n_jobs) are used.
682+
683+
- For n_jobs = -2, all CPUs but one are used.
684+
676685
.. versionchanged:: 0.17
677686
Upgraded to joblib 0.9.3.
678687

0 commit comments

Comments
 (0)
0