A simplistic intuition behind the K-NN algorithm
The K-Nearest Neighbors or the K-NN algorithm is one of the simpler algorithms used in classification problems. The working mechanism of the algorithm is quite intuitive and it can be used for both regression and classification problems.
Now, conside...
adityasanyal.hashnode.dev3 min read
Anthony Fung
Angular/.NET Web developer. I write insights, thoughts, and stories to help software developers build a solid foundation for their skills
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.