Data Preparation for ML and AI

Records are sorted by region and have no temporal dependencies. The pipeline assigns the first 80% of rows to training and the rest to testing. Which action reduces regional sampling bias before the split?

Show the answer

Correct answerB. Shuffle the records

AWhy not this: Standardization changes feature scales without changing record order.

BWhy this is right: Shuffling mixes regions before the ordered 80/20 cut, so both partitions contain every region.

CWhy not this: Imputation addresses missing values, not regional ordering.

DWhy not this: Deduplication removes repeated records but does not mix records sorted by region.

Because the pipeline takes the first 80% of rows for training, region-sorted records would leave some regions only in the test set. Shuffling first mixes regions across both partitions; standardization changes numeric scales but not row order.