
42 segments available
This is lecture 2 of course 6.S094: Deep Learning for Self-Driving Cars taught in Winter 2017. This lecture introduces types of machine learning, the neuron as a computational building block for neural nets, q-learning, deep reinforcement learning, and the DeepTraffic simulation that utilizes deep reinforcement learning for the motion planning task. INFO: Slides: http://bit.ly/2H8Fs7g Website: https://deeplearning.mit.edu GitHub: https://github.com/lexfridman/mit-deep-learning Playlist: https://goo.gl/SLCb1y Links to individual lecture videos for the course: Lecture 1: Introduction to Deep Learning and Self-Driving Cars https://youtu.be/1L0TKZQcUtA Lecture 2: Deep Reinforcement Learning for Motion Planning https://youtu.be/QDzM8r3WgBw Lecture 3: Convolutional Neural Networks for End-to-End Learning of the Driving Task https://youtu.be/U1toUkZw6VI Lecture 4: Recurrent Neural Networks for Steering through Time https://youtu.be/nFTQ7kHQWtc Lecture 5: Deep Learning for Human-Centered Semi-Autonomous Vehicles https://youtu.be/ByZF8_-OJNI CONNECT: - If you enjoyed this video, please subscribe to this channel. - AI Podcast: https://lexfridman.com/ai/ - LinkedIn: https://www.linkedin.com/in/lexfridman - Twitter: https://twitter.com/lexfridman - Facebook: https://www.facebook.com/lexfridman - Instagram: https://www.instagram.com/lexfridman - Slack: https://deep-mit-slack.herokuapp.com
This segment introduces the DeepTraffic project and explains the basics of machine learning and its different types.
"All right. Hello everybody. Welcome back. Glad you came back. Today, we will unveil the first tutorial. The first project is DeepTraffic, code named "DeepTraffic," where your task is to solve the tr..."
This segment explores the concept of reinforcement learning and its parallels to human experiences of learning and navigating uncertainties.
"images that are out there on the Internet and then you think about ImageNet, a data set where every image is labeled, the size of that ImageNet data set is a tiny subset of all the images available on..."
This segment outlines the stages of the supervised learning pipeline, emphasizing the training and evaluation process for machine learning models.
"the only thing we can count on is that truth that comes in the form of a reward. So the standard supervised learning pipeline is you have some raw data, the inputs. you have Ground Truth, the labels, ..."
This segment breaks down the fundamental workings of a perceptron as the basic unit of a neural network.
"And the computational building block of a neural network is a neuron. A perceptron is a type of neuron. It's the original old school neuron where the output is binary, a zero or one. It's not real val..."
This segment explores how a perceptron can mimic the function of a NAND gate in computation.
"in any order, the output is a 1. Otherwise, it's a 0. The cool thing about a NAND gate is that it's a universal gate that you can build up any computer you have where you have your phone in your pocke..."
This segment discusses the importance of activation functions in neural networks for enabling smooth and continuous outputs.
"It's a sort of one basic computational truth you can hold on to as we talk about some of the magical things neural networks can do because if you compare a circuit of NAND gates and a circuit of neuro..."
This segment explains the importance of gradually adjusting weights in neural networks for effective learning.
"we use any kind of smooth function. Sigmoid, where the output can change gradually as you change the weights and the bias. And this is a basic but critical step and so learning is generally the proces..."
This segment explores the role and functionality of the hidden layer in neural networks, emphasizing its importance in processing image data.
"and your task is given that image to say what number is in that image. Now, what is an image? An image is a collection of pixels; in this case 28 X 28 pixels. That's a total of 784 numbers; those numb..."
This segment explains the back propagation process, detailing how weights are adjusted based on output confidence and the role of activation functions.
"And when they don't, we adjust the weights in such a way that they get closer to zero and closer to one depending on whether this is the correct neuron associated with a picture. We'll talk about the ..."
This segment explores the complexities of loss functions in supervised learning and their impact on neural network optimization.
"resulting from the forward pass. So when you input that number of a 6 and outputs, whatever it outputs that's "a", a 10 dimensional vector. And it's summed over the inputs to produce the squared error..."
Exploring how reinforcement learning advances beyond the memorization limits of supervised learning.
"It has to exist in this world that's maybe very different from the Ground Truth. So the take away from supervised learning is that a neural network's a great memorization but in the sort of philosophi..."
This segment explores how agents interact with environments, using the example of Atari Breakout to illustrate actions, rewards, and consequences.
"and from the environment side, the environment receives the action amidst the observation. So your action changes the world, therefore, that world has to change and then tell you about it and give you..."
This segment focuses on the decision-making process in reinforcement learning, emphasizing how agents select actions based on instantaneous rewards and state transitions.
"Going from 5 to 4 to 3, down to 0. And so the goal is to select at any one moment the action that maximizes future reward. Without any knowledge of what a reward is in the greater sense of the word, a..."
This segment explores the significance of how we model environments in reinforcement learning, particularly emphasizing the differences between deterministic and non-deterministic scenarios.
"actually the biggest problem with everything you'll see today, is the model as how we represent the environment. And we'll see today some amazing things that neural networks can achieve on a relativel..."
This segment explores how penalty and reward structures influence decision-making strategies in reinforcement learning.
"and probability of .1 going left and right. This is the optimal policy. Now if we punish every single step with a -2 as opposed to a -0.04. So every time you take a step,it hurts. You're going to try ..."
This segment delves into the concept of discounted rewards in reinforcement learning and introduces the Q-Learning approach.
"and that reward is discounted because the world is stochasted, we can't expect the reward to come along to us in the way that we hope it does based on the policy, based on the way we choose to act. An..."
This segment dives into how Q-Learning updates state-action values using experiences and the Bellman equation to optimize decision-making in reinforcement learning.
"The input to the Q-Function is a state at time t, "st". An action they choose to take and that state "at". and your goal is in that state to choose an action which maximizes the reward in the next ste..."
This segment delves into the balance of exploration and exploitation in Reinforcement Learning, highlighting the significance of the learning rate and Epsilon Greedy Policy.
"When the learning rate is 0, you don't learn when alpha is 0. You never change your world view based on the new incoming evidence. When alpha is 1, every time change your world evaluation based on the..."
Exploring the foundational concepts of Q-Learning and its iterative learning process.
"in whatever you're doing with Reinforcement Learning or driving, you have no preconceived notion of what's good and bad, it's random. Or however you choose to initialize it. And the fact that it learn..."
This segment explores the contrasting approaches to modeling Atari games, comparing manual physics-based models with pixel-based representations learned by neural networks.
"So the way you model, so let's start, is very simplistic world of Atari paddle. You think you model it as a paddle that can move left and right and there's some blocks and you model the physics of the..."
This segment explores the critical interplay of the Epsilon function with Q-learning updates and the implications of varying model representations.
"Yeah. That's a great question. And so the question was: "what is the robustness of this model if the way you represent the world is at all, even slightly different, from the way you thought that worl..."
This segment discusses the randomness in action selection driven by Epsilon in reinforcement learning, emphasizing the importance of exploration and representation in complex models.
"Oh, the effect in that sense? No, no. It's just a coin flip. And if that Epsilon is 0.5, half the time you're going to take a random action. So there's no specific- It's not like you'll take the bes..."
This segment discusses the enormity of Q-Table sizes in reinforcement learning and the necessity of deep learning to generalize across complex environments.
"So you look at 4 images; so, current image and 3 images back and say, they're gray scale with 256 gray levels that size of the Q-Table that the Q value function has to learn is whatever that number is..."
This segment explores how Deep Q-Learning utilizes neural networks to learn optimal strategies in simulated environments without any initial knowledge.
"but still needs a formalized definition of that world which is much easier to do when you're able to take in sensors like an image So Deep Q-Learning, deep version. So instead of learning a Q-Table, a..."
This segment covers how convolutional networks estimate Q-values from raw pixels and explains the process of training neural networks using the Bellman Equation.
"is that using a convolutional neural work, which I'll talk about tomorrow, but it's a vanilla network, like any other like I talk about earlier today, just a regular network That takes the raw pixels,..."
This segment reveals the crucial technique of experience replay in deep Q-learning and its impact on training performance.
"And so we replace the basic of their rule, in the previous pseudo code, by taking a forward pass through the network given that S-state. We'll look at what the predicted Q-value is of that action. We ..."
This segment discusses the importance of experience replay in Deep Q-Learning and how it prevents agents from getting stuck in local optima.
"So as opposed to letting an agent, So you're learning this big network that tries to build a model of what's good to do in the world and what's not. And you're learning as you go. With experience repl..."
This segment reveals how an AI develops a unique and efficient strategy to win at Atari Breakout by exploiting the game's mechanics.
"on the left, so that's very little training, what you get is a paddle that learns hardly anything and it just keeps dying. It goes from 5 to 4 to 2 to 2 to 1, Those are the number of lives left. Then ..."
Exploring how a model can excel at various Atari games without any game-specific customization.
"A very small example of it but its general. It's general purpose, it knows nothing about games and knows nothing about paddles or physics. It's just take answer input of the game and they've did the s..."
This segment explores the role of simulations in reinforcement learning, emphasizing how delayed rewards can still drive effective learning.
"No, you don't have the- Well, yeah you play one step of the game. So you take action in a state and then you observe that. So you have that simulation. I mean, really that's one of the biggest proble..."
This segment explores how reinforcement learning applies to driving simulations using the DeepTraffic game.
"is beat the game of Go is they learn from both expert games and by playing itself. So, you can do this in a distributed way and you could do the learning in a distributor way so you can scale. And in ..."
This segment explores creating a network to navigate a simulated two-dimensional traffic world, detailing the grid-based state representation and simulation controls.
"build a network that achieves a speed of 65 miles an hour or higher. There is a leaderboard and you get to submit the model you come up with with a simple click of a button. So all of this runs in the..."
Explore how to adjust visual inputs and the safety system in the traffic navigation model.
"There is a drop down for different display options. The default is non, in terms of stuff you show on the road. Then there is the learning input which is the, while that whole space is descritized, yo..."
This segment details how the traffic safety system functions within the driving algorithm, focusing on speed limits and movement restrictions.
"That block when it's empty is set to the 85 miles eighty miles an hour. And when it's occupied, it's set to the number that is the speed of the car. And then, the blocks that the red car is occupying ..."
Learn how to easily modify the parameters of a deep Q-learning agent using simple code adjustments in the browser.
"And those actions are given as input. That action was produced by the what's called here, the brain. The brain takes in the current state as input, the last reward, and produces and learns and uses th..."
This segment outlines the method used to evaluate the traffic agent's average speed during competition.
"It provides a value of 0 in those blocks. If we set the patches behind to be 10, it looks 10 patches back behind starting at the 1 patch back is starting from the front of the car. The scoring for the..."
Watch real-time AI training for traffic navigation in action.
"that you've done up to this point or resets it and start the training again. So save often and there's a save button. So the training is done a separate thread in Web Workers which are exciting things..."
In this segment, viewers learn how to run training simulations and submit their models for leaderboard evaluation in the DeepTraffic environment.
"and watching everybody pass. So what's being shown live is the lost function which is pretty poor. So in order to train, like I said, a thousand frames a second you just press the "Run Training" butto..."
This segment explains how to save your configurations, submit your model for evaluation, and utilize the ConvNet.js library in the coding process.
"As as you play around with stuff if you want to save the code you could do so by pressing the "Save Code" button. That saves the various javascript configurations and that saves the network layout to ..."
This segment explains how to customize inputs, layers, and actions in constructing a neural network for driving simulations.
"if it's a 0, 1 through 9, here the output is one of the five actions: left, right, stay in place, speed up or slow down. The ConvNet.JS settings is you can select a number of inputs if you want to mes..."
Discover how neural networks can be efficiently trained using HTML5 canvas and browser technologies.
"is done in the browser using HTML5 canvas. So here is a simple specification of a blue box with canvas and this is very efficient and easy to work with. And the thing that a lot of us are excited abou..."
Exploring the monumental achievement of AlphaGo's victory over the world champion in Go and its implications for driving AI.
"So the very best of deep reinforcement learning is the most exciting accomplishment, I think, is when the game- When I first started as a freshman, took "Intro to Artificial Intelligence" it was said..."