[scikit-learn] Rerunning Kmeans with Python

2020-10-04 Thread Stephen Malcolm
Hello all, I've written some code to run Kmeans on a data set (please see below). And I've plotted the results, with my two clusters/ centroids. However, I've to re-run Kmeans several times and pull up different plots (showing the different centroid positions). Can someone point me in the right

Re: [scikit-learn] Rerunning Kmeans with Python

2020-10-04 Thread Stephen Malcolm
Hello again, I've added some extra code to plot 6 smaller graphs, which should change the initialization of the centroids. The title of the plots should be the sum of the squared distance of each initialization (which should tell me when they converge). The smaller graphs appear (unlabelled) ho