---
title: "Discussion on \"Understanding K-Nearest Neighbors (KNN): From Basics to Weighted KNN\" | Hashnode"
description: "Discussion on \"Understanding K-Nearest Neighbors (KNN): From Basics to Weighted KNN\". Introduction\nK-Nearest Neighbors (KNN) is an intuitive algorithm used for classification and regression. Imagine you move to a new neighborhood and want to know the best restaurant. You ask your closest neighbors for recommendations, and the majority..."
url: "https://hashnode.com/posts/understanding-k-nearest-neighbors-knn-from-basics-to-weighted-knn/669ed606067b80288ef59c14"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding K-Nearest Neighbors (KNN): From Basics to Weighted KNN](https://theminermind.hashnode.dev/understanding-k-nearest-neighbors-knn-from-basics-to-weighted-knn?utm_source=hashnode&utm_medium=feed)

Introduction K-Nearest Neighbors (KNN) is an intuitive algorithm used for classification and regression. Imagine you move to a new neighborhood and want to know the best restaurant. You ask your closest neighbors for recommendations, and the majority...

Jul 22, 2024 · 3 min read · theminermind.hashnode.dev  
Updated Jul 24, 2024  
Read the article

-   [#knn-algorithms](https://hashnode.com/tag/knn-algorithms)
-   [#knn](https://hashnode.com/tag/knn)
-   [#from-scratch-in-python](https://hashnode.com/tag/from-scratch-in-python)
-   [#data-mining](https://hashnode.com/tag/data-mining)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Ankit Kumar](https://hashnode.com/@TheMinerMind)

@TheMinerMind

  
[View profile](https://hashnode.com/@TheMinerMind)

I just sit on my chair and keep clattering away on my keyboard

## Responses 1

Markdown supported · ⌘↵ to post

[Lin Dai](https://hashnode.com/@lingyundai)

[Jul 22, 2024](https://hashnode.com/posts/understanding-k-nearest-neighbors-knn-from-basics-to-weighted-knn/669ed606067b80288ef59c14/comment/669ed6a05019f76dd37b05cd)

I could not understand KNN until this article. Spectacular!
