Book Image

Supervised and Unsupervised Learning with Python [Video]

By : Prateek Joshi
Book Image

Supervised and Unsupervised Learning with Python [Video]

By: Prateek Joshi

Overview of this book

Build real-world Artificial Intelligence (AI) applications to intelligently interact with the world around you, explore real-world scenarios, and learn about the various algorithms that can be used to build AI applications. Packed with insightful examples and topics such as predictive analytics and deep learning, this course is a must-have for Python developers.
Table of Contents (5 chapters)
Chapter 5
Building Recommender Systems
Content Locked
Section 2
Extracting the Nearest Neighbors
Nearest neighbors refers to the process of finding the closest points to the input point from the given dataset. This is frequently used to build classification systems that classify a datapoint based on the proximity of the input data point to various classes. - Define sample 2D datapoints - Define a test datapoint that will be used to extract the K nearest neighbors - Create and train a K Nearest Neighbors model using the input data