Technology and society · GCSE · OCR J277 1.6.1, AQA 8525 3.8, Edexcel 1CP2 5.2.2 · about 20 min
What AI is good for, where it goes wrong, and auditing a training set for bias.
[1 mark]What is machine learning?
[1 mark]Why can a face recognition system work worse for some groups?
[1 mark]Which is a real difficulty with machine learning decisions?
[1 mark]A self-driving car injures someone. What is the hard question?
[1 mark]A training set has 20 samples and 3 are 'night'. What percentage is that?
[1 mark]What does this program print?
counts = {}
for s in ['day', 'day', 'night']:
counts[s] = counts.get(s, 0) + 1
print(counts)Count how many samples of each label are in samples. Print <label>: <n> (<share>%) for each, sorted from the most common to the least, with the share rounded to the nearest whole number. Any label making up less than 15% is under-represented: add UNDER-REPRESENTED to its line. At the end print labels: <n> and under-represented: <labels>, the under-represented labels joined by , .
# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()
samples = [
"day", "day", "day", "day", "day", "day", "day", "day", "day", "day",
"day", "day", "day", "dusk", "dusk", "night", "night", "night", "indoor", "day",
]Plan your program here, then type it in and press Run.
night samples. Which labels are still under-represented?