For a workload with mixed feature types, which strategy best reduces risk of leakage when performing end-to-end training/validation splits across S3-based offline datasets?

Answer

Fit preprocessing (imputation, scaling, encoding) separately on each training fold and apply the resulting transforms only to that fold’s validation data.

Explanation

Preprocessing must be learned only from training data to avoid contaminating evaluation with information from the validation split, which can otherwise inflate metrics.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list