Save this video free

CSci574 / AI 520 Machine Learning: Classroom Session 10/27/2026

Derek Harter · 54:28 · Watch on YouTube

CSci574 / AI 520 Machine Learning: Classroom Session 10/27/2026 Watch on YouTube →

Overview

Derek Harter introduces K-nearest neighbors (KNN) as a supervised, non-parametric method for classification and regression, contrasting its example-based predictions with parametric models such as linear and logistic regression. He explains distance metrics, choosing K, feature scaling, computational costs, evaluation, and scikit-learn usage, then reviews the three tasks in Support Vector Machine Assignment 5 and previews Naive Bayes.

Key takeaways

Chapters

0:00 Course Plan, KNN Topic, and Support Vector Machine Assignment 5
5:40 KNN as a Non-Parametric Supervised Learning Method
10:00 Finding Neighbors and Predicting with K
13:45 KNN's Lazy Learning, Costs, and High-Dimensional Limits
20:30 Selecting K and Scaling Features for Distance-Based Predictions
26:15 A Basic Python Implementation of KNN
35:00 Scikit-Learn KNN and Preventing Test-Set Leakage
38:30 Distance Metrics and Regression Evaluation in Scikit-Learn
44:45 Classification Metrics, K Tuning, and K-Means Comparison
49:45 Assignment 5 Tasks and Naive Bayes Preview

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

Transcript excerpt

0:07 All right. >> Uh, it's about that time. I'm going to get started. So, uh, for my online people, are you guys able to hear me okay? Or not. Anybody? Yeah? Okay. I'll take that as yes. Yeah, I got somebody thumbs up. Okay. All right. All right. Yeah, good afternoon. So,

0:54 I'll get going and get started. So, kind of reminders where we're at here. This is sort of just a few additional machine learning algorithms for this week that I kind of put up there. We don't really have these in our hands-on machine learning textbook, our official course textbook. So, I'm just going to talk a little bit about the KNN and naive Bayes and I don't know. I mean, you know, I might give a question on this on the test two or maybe not, but just for some examples cuz yeah, if you look at the textbook, I should have brought my textbook here. Um, um, oops. Let's bring up our textbook real quickly here. Um, you know, so about the other

1:43 about the last half of it is really neural networks and oh, and you know, kind of a plug. Um, so we'll probably be doing our neural networks course in the spring or maybe summer. That's a good it to take after you do machine learning, but but yeah really we only look at kind of the first half of this book and and on our hands on machine learning textbook kind of really we only specific he only specifically covers you know linear and logistic regression and support vector machines but then after this week we are going to get into some other non-parametric models so looking at decision trees and random forests before we get into unsupervised learning. But but yeah I always like to throw in a

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

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.