Bỏ qua nội dung

Labs · 9618 18.1 · reinforcement learning

Matchbox Learner: Reinforcement with Beads

A computer made of matchboxes and coloured beads learns the game of Nim. Wins add beads, losses take them away, and after enough games it plays perfectly. This is how Donald Michie's MENACE learned in 1961.

3 levelsFree bench

In the exam

9618/32 May/June 2024 · Question 11 · 3 marks

Explain what is meant by Reinforcement Learning in relation to Artificial Intelligence.

Points that gain marks

  • A machine learning method that learns from feedback: rewards and punishments.
  • An agent learns how to behave in an environment by doing actions and seeing their results.
  • A good action gets positive feedback (a reward); a bad action gets negative feedback (a punishment).
  • It learns by itself from the feedback, without labelled data or exact instructions.

In this lab: The matchboxes are the agent and the game is its environment. Its actions are the beads it draws; a win adds beads (reward) and a loss takes them away (punishment). Nobody tells it the rule 'leave a multiple of 4': it finds it from the feedback.

More real experiments

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP