
Explanation:
Incorporating the CrossValidator inside the Pipeline is optimal when the pipeline includes estimators or transformers. This method ensures that the estimator is refitted with each cross-validation fold, enhancing efficiency and facilitating parallel model training.
Ultimate access to all questions.
No comments yet.
When is it advisable to include the CrossValidator within a Pipeline?
A
To enable parallel training of models
B
If the pipeline contains estimators or transformers, like StringIndexer
C
In none of the mentioned scenarios
D
To prevent data leakage from preceding pipeline steps
E
When the pipeline requires refitting