📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the purpose of shuffling data before a random split?

A. To label the data
B. To reduce the number of features
C. To remove any ordering bias so each set is representative ✅
D. To increase the dataset size

Correct Answer: C. To remove any ordering bias so each set is representative

Explanation

Shuffling ensures that ordered data, such as sorted by class, does not end up concentrated in one set.