Question 4 of 5

Why can high accuracy be useless?

A detector missed the only dangerous case out of a hundred, yet its report shows 99% accuracy. One number cannot establish whether it performs its intended job.

An inbox contains 100 messages, three of them spam. A filter that lets everything through handles 97 messages correctly and misses every spam message. Count its successes just among those three messages. That shows why the overall fraction of correct decisions can hide the failure you actually care about.

WHERE TO START

Which mistake would cost your user more?

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