Question 2 of 5

Why can a random split be misleading?

There are no identical rows across subsets, yet the model recognizes customers almost perfectly. Check whether the evaluation includes people it already knows.

You photograph a mug from the front, side and top. If you shuffle individual photos, pictures of the same mug may appear in training and in testing. The model can recognise a familiar pattern. To test recognition on new mugs, split the mugs into groups and keep each mug’s photos together.

WHERE TO START

A customer sent two nearly identical tickets. Which group will each go into?

What to know before this question
Topic example · Overlap between two sets

Change 12 on the second line to 14 and check the result.

train = {11, 12}
test = {12, 13}
print(sorted(train & test))
Line notes
  1. These ticket numbers belong to the training set.
  2. Store the ticket numbers reserved for testing.
  3. Print the ticket numbers that appear in both sets.

How would you rate your understanding?

This is your self-assessment. Progress is saved in this browser.

Not rated yet

← Back to Data and honest evaluation