# Lecture 2 - KNN, ML Vocabulary, and K-Means | CS 189 - Introduction to Machine Learning

https://eecs189.org/fa26/lecture/lec02

[Skip to main content](https://eecs189.org/fa26/lecture/lec02/#main-content) Link Menu Expand (external link) Document Search Copy Copied
[ ](https://eecs189.org/fa26/)
  * [Home / Schedule](https://eecs189.org/fa26/)
  * [Syllabus](https://eecs189.org/fa26/syllabus/)
  * [Graduate Project](https://eecs189.org/fa26/gradproject/)
  * [Calendar](https://eecs189.org/fa26/calendar/)
  * [Course FAQs](https://eecs189.org/fa26/faq/)
  * [Resources](https://eecs189.org/fa26/resources/)
  * [Staff](https://eecs189.org/fa26/staff/)

[View all course offerings ](https://eecs189.org/)
#  [](https://eecs189.org/fa26/lecture/lec02/#lecture-2---knn-ml-vocabulary-and-k-means) Lecture 2 - KNN, ML Vocabulary, and K-Means 
Presented by Narges Norouzi
  * Slides ([PDF](https://drive.google.com/file/d/1wiTpGAOOVAl8g7Z0MJRxj0_PLqda8_y5/view?usp=drive_link), [pptx](https://docs.google.com/presentation/d/1YSJADeRvbR_D7AgXgZsMzXPd7bRy24Sr/edit?usp=drive_link&ouid=103464667152051985983&rtpof=true&sd=true))
  * [Recording](https://www.askademia.org/compsci189/fa26/compsci189-fa26-upload-1788399181)
  * Code ([HTML](https://eecs189.org/fa26/resources/assets/lectures/lec02/lec02.html), [Colab](https://colab.research.google.com/github/BerkeleyML/fa26-student/blob/main/lecture/lec02/lec02.ipynb), [GitHub](https://github.com/BerkeleyML/fa26-student/blob/main/lecture/lec02/lec02.ipynb))
  * Chapter 1 ([PDF](https://link-springer-com.libproxy.berkeley.edu/content/pdf/10.1007/978-3-031-45468-4_1), [Web Reader](https://issuu.com/cmb321/docs/deep_learning_ebook/20)) of [Deep Learning Foundations and Concepts](https://www.bishopbook.com)
  * Chapter 15, Section 15.1 (K-means Clustering) ([PDF](https://link-springer-com.libproxy.berkeley.edu/content/pdf/10.1007/978-3-031-45468-4_15), [Web Reader](https://issuu.com/cmb321/docs/deep_learning_ebook/478)) of [Deep Learning Foundations and Concepts](https://www.bishopbook.com)


* * *
[Back to Top](https://eecs189.org/fa26/lecture/lec02/#top)
[Accessibility](https://dap.berkeley.edu/get-help/report-web-accessibility-issue) [Nondiscrimination](https://ophd.berkeley.edu/policies-and-procedures/nondiscrimination-policy-statement)
Copyright ©2026, Regents of the University of California and respective authors. 
This site is built following the [Berkeley Class Site](https://github.com/just-the-docs/just-the-docs) template, which is generously based on the [Just the Class](https://github.com/kevinlin1/just-the-class), and [Just the Docs](https://github.com/just-the-docs/just-the-docs) templates. 
