~/talk

An Introduction to Reinforcement Learning - Snake Your Way out of a Paper Bag

Talkat C++ on Sea 2025 · 2025-06-23..06-25· [machine-learning]
slides:none on file

Implements tabular Q‑learning in C++ (std::vector, std::deque, std::map) starting on a 1D five‑cell line then a 2D grid, using epsilon‑greedy (epsilon=0.1), learning rate (alpha≈0.1) and discount (gamma≈0.9). Builds a console Snake: state encodes local tiles plus horizontal/vertical displacement to food, actions use discrete_distribution, Q‑table persists to disk. Training over ~100 episodes moves performance from ~50% random to reliably reaching food and avoiding obstacles, though occasional zigzagging remains unexplained.

AI-written summary · about

  1. 0:00Reinforcement learning intro
  2. 1:51Moving from one to two dimensions
  3. 10:20Basic RL concepts
  4. 20:41Q-learning fundamentals
  5. 29:13Expanding to two-dimensional environments
  6. 37:36Better state representation
  7. 41:03Snake with Q-learning
  8. 48:18Q-learning vs deep RL
  9. 51:46Key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.