Machine Learning

Why You Should Not Trust the train_test_split() Function

A reflection on how the use of the train_test_split () function could lead to wrong results, coupled with a practical demonstration

Angelica Lo Duca
Towards Data Science
5 min readFeb 11, 2022

--

Photo by Photoholgic on Unsplash

Surely almost all data scientists have tried to use the train_test_split() function at least once…

--

--

Researcher | +50k monthly views | I write on Data Science, Python, Tutorials, and, occasionally, Web Applications | Book Author of Comet for Data Science