How should the data scientist split the dataset into a training and test set for this use case?

Last Updated on September 14, 2021 by Admin 2

A data scientist must build a custom recommendation model in Amazon SageMaker for an online retail company. Due to the nature of the company’s products, customers buy only 4-5 products every 5-10 years. So, the company relies on a steady stream of new customers. When a new customer signs up, the company collects data on the customer’s preferences. Below is a sample of the data available to the data scientist.

MLS-C01 AWS Certified Machine Learning – Specialty Part 07 Q10 016
MLS-C01 AWS Certified Machine Learning – Specialty Part 07 Q10 016

How should the data scientist split the dataset into a training and test set for this use case?

  • Shuffle all interaction data. Split off the last 10% of the interaction data for the test set.
  • Identify the most recent 10% of interactions for each user. Split off these interactions for the test set.
  • Identify the 10% of users with the least interaction data. Split off all interaction data from these users for the test set.
  • Randomly select 10% of the users. Split off all interaction data from these users for the test set.
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments