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 3
Building a K-Nearest Neighbors Classifier
A K-Nearest Neighbors classifier is a classification model that uses the nearest neighbors algorithm to classify a given data point. The algorithm finds the K closest data points in the training dataset to identify the category of the input data point. - Visualize the input data using four different marker shapes - Define the step size of the grid that will be used to visualize the boundaries - Create the mesh grid of values that will be used to visualize the grid