Free
CourseMachine Learning: K-Nearest Neighbors
Sharpen your machine learning skills by learning how to prepare, implement, and assess the K-Nearest Neighbors algorithm.
Skill level
BeginnerTime to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary2 hoursCertificate of completion
Included with paid plansPrerequisites
None
About this course
Continue your Machine Learning journey with Machine Learning: K-Nearest Neighbors (KNN). Learn how to classify unknown data points based on their similarity to other, known, data points. Use distance and proximity to validate your predictions, and get started with classification techniques.
Skills you'll gain
Prepare data for a KNN model
Explain distance and proximity
Implement and assess a KNN model
Syllabus
Classification: K-Nearest Neighbors
K-Nearest Neighbors is a supervised machine learning algorithm for classification. You will implement and test this algorithm on several datasets.
Reviews from learners
- The progress I have made since starting to use codecademy is immense! I can study for short periods or long periods at my own convenience - mostly late in the evenings.ChrisCodecademy Learner @ USA
- I felt like I learned months in a week. I love how Codecademy uses learning by practice and gives great challenges to help the learner to understand a new concept and subject.RodrigoCodecademy Learner @ UK
- Brilliant learning experience. Very interactive. Literally a game changer if you're learning on your own.John-AndrewCodecademy Learner @ USA
Our learners work at
Join over 50 million learners and start Machine Learning: K-Nearest Neighbors today!
Looking for something else?
Related resources
- Article
Training Set vs Validation Set vs Test Set
This article teaches the importance of splitting a data set into training, validation and test sets. - Article
Regression vs. Classification
Learn about the two types of Supervised Learning algorithms. - Article
What is Scikit-Learn?
Open-source ML library for Python. Built on NumPy, SciPy, and Matplotlib.
Related courses and paths
- Course
Deep Learning with TensorFlow: Classification
Build deep learning models to classify data.Intermediate2 hours - Career path
Machine Learning/AI Engineer
Machine Learning/AI Engineers build end-to-end ML applications and power many of the apps we use every day. They work in Python, Git, & ML.Includes 7 CoursesWith CertificateIntermediate45 hours - Free course
Discrete Math: Sets and Set Operations
Learn about sets and set operations and their relevance to computer science.Beginner Friendly1 hour
Browse more topics
- Python4,588,360 learners enrolled
- Data Science5,854,826 learners enrolled
- Machine Learning1,029,148 learners enrolled
- Code Foundations13,305,462 learners enrolled
- For Business9,809,169 learners enrolled
- Computer Science7,533,248 learners enrolled
- Web Development6,940,907 learners enrolled
- Cloud Computing4,153,858 learners enrolled
- Data Analytics3,960,183 learners enrolled
Unlock additional features with a paid plan
Practice Projects
Guided projects that help you solidify the skills and concepts you're learning.Assessments
Auto-graded quizzes and immediate feedback help you reinforce your skills as you learn.Certificate of Completion
Earn a document to prove you've completed a course or path that you can share with your network.