@@ -670,8 +670,16 @@ class GridSearchCV(BaseSearchCV):
670
670
fit_params : dict, optional
671
671
Parameters to pass to the fit method.
672
672
673
- n_jobs : int, default=1
674
- Number of jobs to run in parallel.
673
+ n_jobs: int, default: 1 :
674
+ The maximum number of estimators fit in parallel.
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 + n_jobs + 1)`` are used.
682
+ For example, with ``n_jobs = -2`` all CPUs but one are used.
675
683
676
684
.. versionchanged:: 0.17
677
685
Upgraded to joblib 0.9.3.
@@ -888,8 +896,16 @@ class RandomizedSearchCV(BaseSearchCV):
888
896
fit_params : dict, optional
889
897
Parameters to pass to the fit method.
890
898
891
- n_jobs : int, default=1
892
- Number of jobs to run in parallel.
899
+ n_jobs: int, default: 1 :
900
+ The maximum number of estimators fit in parallel.
901
+
902
+ - If -1 all CPUs are used.
903
+
904
+ - If 1 is given, no parallel computing code is used at all,
905
+ which is useful for debugging.
906
+
907
+ - For ``n_jobs`` below -1, ``(n_cpus + n_jobs + 1)`` are used.
908
+ For example, with ``n_jobs = -2`` all CPUs but one are used.
893
909
667D
894
910
pre_dispatch : int, or string, optional
895
911
Controls the number of jobs that get dispatched during parallel
@@ -1027,3 +1043,4 @@ def fit(self, X, y=None):
1027
1043
self .n_iter ,
1028
1044
random_state = self .random_state )
1029
1045
return self ._fit (X , y , sampled_params )
1046
+
0 commit comments