When related rows belong to the same group, keep every member in either training or validation folds. This prevents group relationships from distorting model evaluation, especially with non-IID tabular data. Prefer grouped cross-validation when hidden groups exist; use time-based validation instead when time determines the model. section 2.1.1
Figure 2.1 Comparison of IID and non--IID data sequences. The left chart shows IID data, while the right chart illustrates non-IID data, highlighting the sequential correlation patterns.
Compare IID and non-IID row sequences to see why related observations can require grouping during validation. section 2.1.1
