I have the following code which does k-means clustering over various clusters.
# Running the k-means algorithm -----------------------------------------------