---
title: "Comment by Anthony Fung on \"A simplistic intuition behind the K-NN algorithm\" | Hashnode"
description: "Nice overview. I remember using this in one of my coursework projects during my studies. I remember one of the tricky aspects when I tried it was how to initial"
url: "https://hashnode.com/posts/a-simplistic-intuition-behind-the-k-nn-algorithm/642052202b285a14e7727d1f/comment/6424c554bb5fefa80796c4b7"
---

[Discussion](https://hashnode.com/posts/a-simplistic-intuition-behind-the-k-nn-algorithm/642052202b285a14e7727d1f)

Comment [A simplistic intuition behind the K-NN algorithm](https://hashnode.com/posts/a-simplistic-intuition-behind-the-k-nn-algorithm/642052202b285a14e7727d1f)

[Anthony Fung](https://hashnode.com/@anthonyf)

[Mar 29, 2023](https://hashnode.com/posts/a-simplistic-intuition-behind-the-k-nn-algorithm/642052202b285a14e7727d1f/comment/6424c554bb5fefa80796c4b7)

Nice overview. I remember using this in one of my coursework projects during my studies.

I remember one of the tricky aspects when I tried it was how to initialise the clusters.

When I picked random data points as the cluster centres, the results could be quite poor if they happened to be initialised near others.

[Aditya Sanyal](https://hashnode.com/@AdiSan)

[Mar 30, 2023](https://hashnode.com/posts/a-simplistic-intuition-behind-the-k-nn-algorithm/642052202b285a14e7727d1f/comment/6424c554bb5fefa80796c4b7#reply-6424efb3bb5fefa80796c998)

Ya, this algorithm can make unwanted predictions if the data is not preprocessed properly
