Chapter 2. Classifying with k-Nearest Neighbors

 

This chapter covers
  • The k-Nearest Neighbors classification algorithm
  • Parsing and importing data from a text file
  • Creating scatter plots with Matplotlib
  • Normalizing numeric values

 

Have you ever seen movies categorized into genres? What defines these genres, and who says which movie goes into what genre? The movies in one genre are similar but based on what? I’m sure if you asked the people involved with making the movies, they wouldn’t say that their movie is just like someone else’s movie, but in some way you know they’re similar. What makes an action movie similar to another action movie and dissimilar to a romance movie? Do people kiss in action movies, and do people ...

Get Machine Learning in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.