Save this video free

COMP 3200 - Intro to Artificial Intelligence - Lecture 19 - Temporal Difference Learning + A5

Dave Churchill · 2:07:18 · Watch on YouTube

Part of Memorial University of Newfoundland COMP 3200. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Dave Churchill explains on-policy and off-policy reinforcement learning, then derives temporal-difference learning and compares the on-policy SARSA algorithm with off-policy Q-learning. He illustrates how exploration changes their behavior in the cliff example and walks through Assignment 5, where one tabular learning implementation supports grid-world pathfinding, blackjack, and several other environments.

Key takeaways

Chapters

0:00 Lecture 19: On-Policy Learning and Temporal Difference Learning
1:30 On-Policy Monte Carlo and Policy Iteration
6:04 Behavior Policies and Target Policies in Off-Policy Learning
10:05 Soft Policies and Epsilon-Greedy Exploration
13:00 Two Ways to Implement Epsilon-Greedy Selection
19:01 Monte Carlo Control with an Epsilon-Soft Policy
24:41 Calculating Epsilon-Soft Probabilities and Handling Ties
30:32 Exploration Versus Exploitation and the Case for Off-Policy Control
35:06 Temporal Difference Learning Combines Monte Carlo and Dynamic Programming
36:54 TD(0) Updates Values After Each Transition
42:25 Driving Home: A Real-World Example of TD Updates
46:05 When TD Learning Helps Compared with Monte Carlo
47:11 From TD Prediction to SARSA Control
48:20 The SARSA Update Uses State, Action, Reward, State, Action
53:20 SARSA Applies Epsilon-Greedy Selection at Each Step
56:25 Q-Learning Replaces SARSA's Next Action with a Maximum
1:04:56 The Cliff Example: Training Performance Versus Final Policy
1:08:09 Assignment 5 Grid World: States, Actions, and Rewards
1:11:59 Grid World Controls, State Encoding, and Value Displays
1:15:14 Assignment 5 Iterations and the Meaning of Grid World Rewards
1:21:25 Training Grid Worlds and Comparing Fixed Alpha with Averaging
1:28:28 Testing Cliff World, Blackjack, and Other Assignment Environments
1:34:24 Environment API and Integer State-Action Representation
1:39:00 Assignment 5 Setup: Q, Policy, and Visit-Count Arrays
1:47:18 Learning Iteration: Resetting and Selecting an Action
1:54:29 Implementing SARSA and Q-Learning Update Targets
2:01:20 Policy Improvement, Tied Actions, and Floating-Point Tolerance

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 So, lecture number 19. Um, quickly before I talk about what we're going to be talking about on the schedule, it said that today we're going to be talking about temporal difference learning, which is one of the topics, but also assignment 5. Um, but I've added a few slides and I'm not sure exactly how long the lecture is going to take. So, I'm not actually going to be talking about assignment five in the lecture. I'm going to do the whole assignment thing later and then put it at the end of the video. So, assignment 5 is still today's lecture, but I'll get that video up later this evening. I'm sure everyone is dying to start assignment 5 on the day that it's released, but it'll be there when you get up tomorrow morning. And also, uh, since the assignment is due today, I I'll have the normal office hours probably see a couple of you

0:47 there. So, lecture number 19, we're going to be talking about on policy versus off policy learning. Uh, something called temp temporal difference learning. And then two of probably the most famous um early temporal difference learning algorithms which are SARSA and Q-learning. And um this is a great lecture for the exam because it's just algorithms and definitions and that's what we we like to see on the exam. And uh as always, please [clears throat] follow along in the textbook because it explains things better than I ever could. Um I would probably get up here and just read the textbook, but that wouldn't be a very exciting lecture. So follow along with that. It's a great book. It explains it really really well. So what is on policy versus off policy learning. So we talked last time about

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Dave Churchill.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.