Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1spam_filter.learn(email, "spam") | Aword_count[word] ← word_count[word] + 1 | |
| 2recommend(history) | BA spam filter learns from an email the user marked as spam, so it spots similar emails better in future | |
| 3A game-playing program improves because it learns from the results of games it has played | CShowing the same list to everyone ignores past behaviour, so it is not a learning recommendation system | |
| 4Predictive text learns which words a user types often and suggests them sooner | DA recommendation system uses what a user has watched or bought to suggest videos or products they may like | |
| 5IF email CONTAINS "free" THEN spam (rule never changes) | Ewin_rate ← win_rate + learn(game_result) | |
| 6suggestions ← same_list_for_everyone | FA fixed rule that never changes is not machine learning, because the program does not improve from experience |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
machine learning — A program that improves from experience, e.g. spam filters, shopping or video recommendations, predictive text and game-playing programs that get better the more they are used.result ← model.predict(email)model.train(email, "spam")suggestion ← recommend(watchedVideos)FOR game ← 1 TO 1000nextWord ← model.predictNext(word)