Save this video free

CSci574 / AI 520 Machine Learning: Classroom Session 09/22/2026

Derek Harter · 58:30 · Watch on YouTube

Part of East Texas A&M University CSCI 574. See all 20 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

Derek Harter reviews the implementation requirements for Assignment 3, then explains how linear regression minimizes mean squared error using the normal equation and gradient descent. He connects the gradient formula to NumPy vectorization, illustrates parameter updates with one- and two-parameter cost surfaces, and explains why learning-rate choice matters.

Key takeaways

Chapters

0:00 Assignment 3 Setup: Importing the Dummy-Feature Function
6:00 Assignment 3 Tasks: Prediction, MSE, Gradients, and Plots
12:00 Mean Squared Error as the Linear Regression Objective
17:00 The Normal Equation Finds the Minimum Analytically
24:00 Why Use Gradient Descent Instead of the Normal Equation?
30:00 A One-Parameter Cost Curve Shows the Minimum
36:00 Gradient Descent Moves Along the Cost Curve
40:00 Visualizing Two Parameters with Cost Contours
45:00 Following the Gradient on the Housing-Data Cost Surface
49:00 Computing All Linear Regression Gradients with NumPy
53:00 Gradient Updates, Learning-Rate Tuning, and Next Steps

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

Transcript excerpt

0:05 Okay. Uh, let me try restarting that again. Okay. Um, so I think I'm back. Can you guys hear me again? Is my audio okay on the Zoom?

0:58 >> Yeah, we can hear you. >> All right, great. Uh, all right. So, sorry about that. I hope it doesn't do it again. I I'm not certain why I'm having these issues with freezing. So, uh, where I where I left off, um, I was I was going to kind of bookend the class talking about assignment two. Uh, so there's a little bit of a difference in what you need to do for the workflow. So I started saying that um so like for the first task you're supposed to write this add dummy features um function but um I didn't give the kind of like the stubs to you. So you have to do like uh find the from import in the notebook um and uncomment that uh and in order to use it. Um so I think I normally have some instructions about you shouldn't modify uh these cells

1:46 where we're calling the uh pi tests but uh in this case uh you should uh actually actually do modify them to to uh open the code here. So like in this case um it's probably described in here but uh when you're implementing this function it's going to take a like an array as input uh and return an array as a result. Um so as I started saying uh um you should have some PID documentation of the general form um descriptions I just do this real quickly. I won't type in everything here, but um like uh in this case, we're taking

2:34 x, which is a numpy array um and we're going to return the same array

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, Derek Harter.

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.