Skip to content

Commit a1ab480

Browse files
committed
ENH mention single transformer
1 parent b6c47a3 commit a1ab480

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

python_scripts/02_numerical_pipeline_scaling.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,11 @@
224224
# ![pipeline fit diagram](../figures/api_diagram-pipeline.fit.svg)
225225
#
226226
# When calling `model.fit`, the method `fit_transform` from each underlying
227-
# transformer in the pipeline will be called to: (i) learn their internal
228-
# model states and (ii) transform the training data. Finally, the preprocessed
229-
# data are provided to train the predictor.
227+
# transformer (here a single transformer) in the pipeline will be called to:
228+
#
229+
# - learn their internal model states
230+
# - transform the training data. Finally, the preprocessed data are provided to
231+
# train the predictor.
230232
#
231233
# To predict the targets given a test set, one uses the `predict` method.
232234

@@ -239,11 +241,12 @@
239241
#
240242
# ![pipeline predict diagram](../figures/api_diagram-pipeline.predict.svg)
241243
#
242-
# The method `transform` of each transformer is called to preprocess the data.
243-
# Note that there is no need to call the `fit` method for these transformers
244-
# because we are using the internal model states computed when calling
245-
# `model.fit`. The preprocessed data is then provided to the predictor that
246-
# will output the predicted target by calling its method `predict`.
244+
# The method `transform` of each transformer (here a single transformer) is
245+
# called to preprocess the data. Note that there is no need to call the `fit`
246+
# method for these transformers because we are using the internal model states
247+
# computed when calling `model.fit`. The preprocessed data is then provided to
248+
# the predictor that will output the predicted target by calling its method
249+
# `predict`.
247250
#
248251
# As a shorthand, we can check the score of the full predictive pipeline
249252
# calling the method `model.score`. Thus, let's check the computational and

0 commit comments

Comments
 (0)