# Distance-based Models: Implementing Distance-based Algorithms

Math    |    Intermediate
• 9 videos | 1h 9m 14s
• Includes Assessment
Rating 5.0 of 1 users (1)
Knowing the math behind machine learning (ML) opens up many exciting avenues. There are vast amounts of ML algorithms you could learn. However, the distance-based algorithms K Nearest Neighbors and K-means clustering are arguably the most popular due to their simplicity and efficacy. In this course, practice building a classification model using the K Nearest Neighbors algorithm. Build upon this algorithm to perform regression. Then, perform a clustering operation by implementing the K-means algorithm. And in doing so, explore the techniques involved in converging the centroids towards their optimal positions. Upon completion, you'll be able to perform classification, regression, and clustering using the KNN and K-means algorithms.

## WHAT YOU WILL LEARN

• Discover the key concepts covered in this course Analyze the data used to implement a classification model using k nearest neighbors Implement a function that classifies a point using the k nearest neighbors algorithm Classify test data points using your own knn classifier and evaluate the model using a variety of metrics Implement a function that uses knn in order to perform regression
• Obtain predictions on test data for your own implementation of a knn regressor Code the individual steps involved in performing a clustering operation using the k-means algorithm Define a function that clusters the points in a dataset using the k-means algorithm and then test it Summarize the key concepts covered in this course

## IN THIS COURSE

• 3.  Building a KNN Classifier
• 4.  Testing and Evaluating a KNN Classifier
• 5.  Building a KNN Regressor
• 6.  Testing and Evaluating a KNN Regressor
• 7.  Computing Centroids and Clusters
• 8.  Building and Evaluating a K-Means Model
• 9.  Course Summary

## EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.