How do you determine the number of components when PCA feeds into a downstream supervised model?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Explain how to choose the number of principal components when PCA is a preprocessing step for a supervised model. Tests leakage-safe cross-validation with pipelines, how to pick among near-tied settings, comparison with a no-PCA baseline, and when variance-based reduction drops the signal.