|
224 | 224 | # 
|
225 | 225 | #
|
226 | 226 | # 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. |
230 | 232 | #
|
231 | 233 | # To predict the targets given a test set, one uses the `predict` method.
|
232 | 234 |
|
|
239 | 241 | #
|
240 | 242 | # 
|
241 | 243 | #
|
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`. |
247 | 250 | #
|
248 | 251 | # As a shorthand, we can check the score of the full predictive pipeline
|
249 | 252 | # calling the method `model.score`. Thus, let's check the computational and
|
|
0 commit comments