Save this video free

Lecture 19: Back propogation equations

Burton Ma · 51:19 · Watch on YouTube

Part of Queen's University CISC 371. See all 23 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

Burton Ma derives backpropagation for fully connected neural networks, showing how the layer error propagates through transposed weight matrices and how each layer's weight gradient is formed from its activations and errors. He then walks through a two-pass MATLAB implementation and a small XOR classification example, highlighting the roles of bias weights, random initialization, and network architecture.

Key takeaways

Chapters

0:00 Deriving Backpropagation Equation 2 for Hidden Layers
13:00 Building Weight Gradients from Activations and Layer Errors
21:00 Combining Layer Gradients into the Network Gradient
29:00 The Two-Pass Backpropagation Algorithm
33:00 Setting Up the Two-Neuron XOR Classification Example
37:00 Random Initialization and XOR Decision Boundaries
40:00 Representing Network Weights and Activations in MATLAB
42:00 Implementing Forward and Backward Passes in MATLAB
46:00 Training Data, Batches, and Run-to-Run Variation
49:00 How the Bias Weight Enters Each Neuron

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

Transcript excerpt

0:00 All right, good morning everybody. Um, so picking up where we left off from last lecture. Um, so we were talking about the back propagation equations uh for a fully connected neural network. Uh, and so at the end of the last lecture we had managed to derive an expression for this thing here back propagation equation number one. Um and so its value is given the symbol delta uh with a superscript big L. So it's something uh related to the last layer of the neural network. Right? That's what that capital L there is indicating. Uh and this term delta is called the error in the layer. Um or uh but really what it is it's the gradient

0:50 of the overall cost with respect to the transfer function. um in that layer. So delta of big L is the gradient of the cost with respect to the transfer function in uh the last layer. So we're in the last layer. So we can actually calculate this quantity um because there's only that one layer of neurons that we have to consider. Uh and so when you crunch through all the math uh you end up uh with a simple relatively simple expression um for uh back propagation equation number one. This is for the least squares loss. Uh now we need to do the same thing for the all of the preceding layers. And so that's what propagation equation number two is. It's going to do the same thing. So it's going to compute the gradient of

1:37 the cost uh with respect to the transfer function in uh in a layer. Uh but it's going to do it for a layer that's not the last layer. Um okay. Okay, so this picture here will hopefully uh well, it contains all the

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, Burton Ma.

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.