Save this video free

CSci574 / AI 520 Machine Learning: Classroom Session 11/19/2026

Derek Harter · 1:00:11 · Watch on YouTube

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

Derek Harter explains K-means clustering as an unsupervised learning method, showing how it alternates between assigning each data point to its nearest centroid by Euclidean distance and recomputing centroids as cluster means. He connects the algorithm to Assignment 7, which also requires implementing PCA with singular value decomposition, and explains initialization sensitivity, repeated runs, inertia, and the elbow method for choosing K.

Key takeaways

Chapters

0:00 Assignment 7, Thanksgiving Deadline, and Test 2 Plans
3:25 Assignment 7 Implements K-Means and PCA from Scratch
14:39 Hands-On Machine Learning Notebooks and Clustering Context
16:39 Why Clustering Helps with Unlabeled Data and Outliers
21:04 Choosing K for the Textbook's Five-Cluster Blob Dataset
25:00 Random Centroid Initialization Can Change K-Means Results
32:33 K-Means Iteration: Assign Points, Then Average Cluster Members
38:04 Convergence Is Guaranteed, but Random Starts Can Reach Local Minima
44:27 Scikit-Learn Repeats K-Means Runs and Selects a Better Score
49:00 Smarter Centroid Initialization Spreads Starting Points
50:22 Use the Inertia Elbow to Estimate the Number of Clusters
57:02 Assignment Coding Guidance and Session Close

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

Transcript excerpt

0:44 Okay. Um I'm going to go ahead and get started. Don't have any too many people yet here, but um I am recording this, so I'll post afterwards. Hopefully I won't have as many problems as we did on Tuesday. So uh first kind of announcements looking ahead. Um I hadn't had the assignment seven uh available until today, but that's available now. So uh and I did get back the assignment sixes. I didn't I don't think I have too much to say on the assignment six, but um uh you can go check your evaluation. Um I didn't have a whole lot of extra feedback from most people. Uh but looking for the assignment seven, so hopefully everybody's aware that we have Thanksgiving uh next week, kind of only

1:33 a half week. Uh but I am going to keep the assignment seven due date for the Sunday 11/29, uh which is actually the, you know, Sunday kind of at the at the end of the uh the weekend for the Thanksgiving break just because we've actually only got one week of face-to-face classes and then a finals week after that. So so for anybody that's listening to this, uh the plan is we're to finish up the supervised, unsupervised learning materials and the assignment seven, you know, over this week and over kind of the half Thanksgiving week with the assignment seven is still going to be due on Sunday, although it might be okay. Uh you know, I mean I would encourage people if you especially if you have Thanksgiving plans to go ahead and start, you know, get the assignment seven started at least like this week,

2:22 this weekend here. [snorts] Uh but but it might be okay if if some people need an extra day or two

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.