← Questions
Implement k-means clustering
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Implement k-means from scratch: initialize k centroids, assign every point to its nearest centroid, move each centroid to the mean of its points, and repeat until the assignments stop changing. Discuss initialization, empty clusters and the cost per iteration. The same round also had short interval and frequency-counting problems.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding


