Within-Fold Standardization (Leakage-Free)
Source:R/safe-preprocessing.R
standardize_within_fold.RdStandardizes features using training-fold statistics only. Test-fold features are centered and scaled using the same training-derived parameters.