Machine learning

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Machine learning

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which statement matches the syllabus wording for machine learning?
A A program has the ability to automatically adapt its own processes and/or data
B A program that only follows fixed instructions written by a programmer
2. In machine learning, what does 'automatic' mean?
A A programmer rewrites the code each time it needs to change
B The program changes itself without a programmer editing it
3. A spam filter gets better at spotting junk email the more emails it sees. What is this an example of?
A A program improving with experience
B A program with fixed rules that never change
4. Machine learning is best described as...
A A type of computer hardware
B A type of AI
5. Which of these can a machine learning program adapt by itself?
A Its own processes and/or its own data
B Only the physical parts of the computer

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1machine learning AA type of AI where a program automatically adapts its own processes and/or data
2automatic adaptation BThis is not machine learning because a programmer is making the changes. In machine learning the adaptation is automatic.
3A machine learning program improves with experience as it gets more data CA program that never changes its processes or data does not improve with experience, so it is not machine learning.
4Machine learning is a type of AI, so it is one way a system can show intelligent behaviour Daccuracy = accuracy + learned_from(new_data)
5A programmer edits the rules each week to make the system learn EML ⊂ AI
6A program gives the same output however much experience it gets: machine learning FThe program changes itself with no programmer editing the code or data

Definitions

machine learning

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Machine learning is a type of __
2.
Machine learning adapts its own _________ and/or data
3.
A program that adapts _____________ with no programmer changing it
4.
A program that improves with __________
5.
Machine learning adapts its own processes and/or ____

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A FUNCTION learn(email, label)
B IF label = 'spam' THEN
C REMOVE email FROM spamData
D ENDIF
E ENDFUNCTION
Question 2
A WHILE playing = TRUE
B result ← playRound(
C IF result = LOSS THEN
D adjustOwnRules()
E ENDIF
F ENDWHILE
Question 3
A experience ← 0
B REPEAT
C experience ← experience + 1
D accuracy ← accuracy - 0.1
E UNTIL experience = 100
Question 4
A READ newData
B WAIT FOR programmer TO EDIT
C OUTPUT 'Rules updated'
Question 5
A FOR each photo IN trainingSet
B guess ← label
C IF guess <> label THEN
D improveModel()
E NEXT photo

Answer Key

Machine learning
Section A: Quick Questions
Q1
A — A program has the ability to automatically adapt its own processes and/or data
Q2
B — The program changes itself without a programmer editing it
Q3
A — A program improving with experience
Q4
B — A type of AI
Q5
A — Its own processes and/or its own data
Section B: Match the Pairs
Q1
machine learning → A type of AI where a program automatically adapts its own processes and/or data
Q2
automatic adaptation → The program changes itself with no programmer editing the code or data
Q3
A machine learning program improves with experience as it gets more data → accuracy = accuracy + learned_from(new_data)
Q4
Machine learning is a type of AI, so it is one way a system can show intelligent behaviour → ML ⊂ AI
Q5
A programmer edits the rules each week to make the system learn → This is not machine learning because a programmer is making the changes. In machine learning the adaptation is automatic.
Q6
A program gives the same output however much experience it gets: machine learning → A program that never changes its processes or data does not improve with experience, so it is not machine learning.
Section C: Definitions
Q1
machine learning — A type of AI where a program automatically adapts its own processes and/or data, improving with experience, with no programmer changing it.
Section D: Fill in the Blanks
Q1
Machine learning is a type of AI
Q2
Machine learning adapts its own processes and/or data
Q3
A program that adapts automatically with no programmer changing it
Q4
A program that improves with experience
Q5
Machine learning adapts its own processes and/or data
Section E: Spot the Error
Q1
C — A machine learning program adapts its own data as it sees new examples. It should ADD the spam email to spamData, not remove it, so the filter improves with experience.
Q2
B — The function call is missing its closing bracket. It should be result ← playRound().
Q3
D — Machine learning improves with experience, so accuracy should go up as experience grows. It should be accuracy + 0.1, not minus.
Q4
B — In machine learning the adaptation is automatic: no programmer changes the rules. The program should update its own rules using the new data.
Q5
B — The guess must come from the model's own prediction. Copying the correct label means the model never makes a mistake, so it has nothing to learn from. It should be guess ← predict(photo).