Skip to content

Commit edb7592

Browse files
committed
DOC: Emphasize that n_jobs is for fit and predict methods in random forests.
1 parent 544e949 commit edb7592

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sklearn/ensemble/forest.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ class RandomForestClassifier(ForestClassifier):
755755
the generalization error.
756756
757757
n_jobs : integer, optional (default=1)
758-
The number of jobs to run in parallel. If -1, then the number of jobs
759-
is set to the number of cores.
758+
The number of jobs to run in parallel for both `fit` and `predict`.
759+
If -1, then the number of jobs is set to the number of cores.
760760
761761
random_state : int, RandomState instance or None, optional (default=None)
762762
If int, random_state is the seed used by the random number generator;
@@ -897,8 +897,8 @@ class RandomForestRegressor(ForestRegressor):
897897
the generalization error.
898898
899899
n_jobs : integer, optional (default=1)
900-
The number of jobs to run in parallel. If -1, then the number of jobs
901-
is set to the number of cores.
900+
The number of jobs to run in parallel for both `fit` and `predict`.
901+
If -1, then the number of jobs is set to the number of cores.
902902
903903
random_state : int, RandomState instance or None, optional (default=None)
904904
If int, random_state is the seed used by the random number generator;
@@ -1031,8 +1031,8 @@ class ExtraTreesClassifier(ForestClassifier):
10311031
the generalization error.
10321032
10331033
n_jobs : integer, optional (default=1)
1034-
The number of jobs to run in parallel. If -1, then the number of jobs
1035-
is set to the number of cores.
1034+
The number of jobs to run in parallel for both `fit` and `predict`.
1035+
If -1, then the number of jobs is set to the number of cores.
10361036
10371037
random_state : int, RandomState instance or None, optional (default=None)
10381038
If int, random_state is the seed used by the random number generator;
@@ -1178,8 +1178,8 @@ class ExtraTreesRegressor(ForestRegressor):
11781178
the generalization error.
11791179
11801180
n_jobs : integer, optional (default=1)
1181-
The number of jobs to run in parallel. If -1, then the number of jobs
1182-
is set to the number of cores.
1181+
The number of jobs to run in parallel for both `fit` and `predict`.
1182+
If -1, then the number of jobs is set to the number of cores.
11831183
11841184
random_state : int, RandomState instance or None, optional (default=None)
11851185
If int, random_state is the seed used by the random number generator;
@@ -1290,8 +1290,8 @@ class RandomTreesEmbedding(BaseForest):
12901290
sample masks).
12911291
12921292
n_jobs : integer, optional (default=1)
1293-
The number of jobs to run in parallel. If -1, then the number of jobs
1294-
is set to the number of cores.
1293+
The number of jobs to run in parallel for both `fit` and `predict`.
1294+
If -1, then the number of jobs is set to the number of cores.
12951295
12961296
random_state : int, RandomState instance or None, optional (default=None)
12971297
If int, random_state is the seed used by the random number generator;

0 commit comments

Comments
 (0)