Intermediate
Artificial Intelligence & Machine Learning
Q71 / 100
In scikit-learn-style workflows, what is the purpose of a Pipeline object?
Correct! Well done.
Incorrect.
The correct answer is B) It chains preprocessing steps and an estimator into a single object so transformations are applied consistently during both training and inference, preventing data leakage
B
Correct Answer
It chains preprocessing steps and an estimator into a single object so transformations are applied consistently during both training and inference, preventing data leakage
Explanation
A pipeline bundles steps like scaling, encoding, and the final estimator so that fit/transform are applied in the same order on both training and test data, which prevents accidentally leaking information from the test set into preprocessing statistics.
Progress
71/100