K-Nearest Neighbors (KNN) Classification with scikit-learn
This article covers how and when to use k-nearest neighbors classification with scikit-learn. Focusing on concepts, workflow, and examples. We also cover distance metrics and how to select the best value for k using cross-validation.
Updated Feb 2023 · 14 min read
Get started with machine learning for free
Beginner
4 hr
317.8K learners
Supervised Learning with scikit-learn
Beginner
4 hr
46.3K learners
Topics
RelatedSee MoreSee More
What is TinyML? An Introduction to Tiny Machine Learning
Learn about TinyML, its applications and benefits, and how you can get started with this emerging field of machine learning.
Precision-Recall Curve in Python Tutorial
Learn how to implement and interpret precision-recall curves in Python and discover how to choose the right threshold to meet your objective.
Vidhi Chugh
14 min
Association Rule Mining in Python Tutorial
Uncovering Hidden Patterns in Python with Association Rule Mining
An Introduction to Python Subprocess: Basics and Examples
Explore our step-by-step guide to running external commands using Python's subprocess module, complete with examples.
Setting Up VSCode For Python: A Complete Guide
Experience a simple, fun, and productive way of Python development by learning about VSCode and its extensionsn and features.
GeoPandas Tutorial: An Introduction to Geospatial Analysis
Get started with GeoPandas, one of the most popular Python libraries for geospatial analysis.