What is the purpose of train_test_split() in scikit-learn?

Select the correct answer: Single Choice

Key points

  • train_test_split() helps prevent overfitting by evaluating the model on unseen data
  • It randomly shuffles the data before splitting to ensure randomness
  • It is a crucial step in machine learning model development

Ready to go further?