Cross-validation chooses a penalty by fitting on part of the data and measuring the prediction error on the rest, over several splits. With time series, every training set must precede its test set, with a gap (a purge) at least as long as the dependence between the targets, so that no information from the test period leaks into the fit.
Quantitative Finance · Glossary