File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,16 @@ into one. This is useful as there is often a fixed sequence
16
16
of steps in processing the data, for example feature selection, normalization
17
17
and classification. :class: `Pipeline ` serves two purposes here:
18
18
19
- **Convenience **: You only have to call ``fit `` and ``predict `` once on your
19
+ Convenience and encapsulation
20
+ You only have to call ``fit `` and ``predict `` once on your
20
21
data to fit a whole sequence of estimators.
21
-
22
- ** Joint parameter selection **: You can :ref: `grid search <grid_search >`
22
+ Joint parameter selection
23
+ You can :ref: `grid search <grid_search >`
23
24
over parameters of all estimators in the pipeline at once.
25
+ Safety
26
+ Pipelines help avoid leaking statistics from your test data into the
27
+ trained model in cross-validation, by ensuring that the same samples are
28
+ used to train the transformers and predictors.
24
29
25
30
All estimators in a pipeline, except the last one, must be transformers
26
31
(i.e. must have a ``transform `` method).
You can’t perform that action at this time.
0 commit comments