|
|
@ -86,6 +86,7 @@ max_iters = 10;
|
|
|
|
% settings them to be random examples (as can be seen in
|
|
|
|
% settings them to be random examples (as can be seen in
|
|
|
|
% kMeansInitCentroids).
|
|
|
|
% kMeansInitCentroids).
|
|
|
|
initial_centroids = [3 3; 6 2; 8 5];
|
|
|
|
initial_centroids = [3 3; 6 2; 8 5];
|
|
|
|
|
|
|
|
%initial_centroids = kMeansInitCentroids(X, K);
|
|
|
|
|
|
|
|
|
|
|
|
% Run K-Means algorithm. The 'true' at the end tells our function to plot
|
|
|
|
% Run K-Means algorithm. The 'true' at the end tells our function to plot
|
|
|
|
% the progress of K-Means
|
|
|
|
% the progress of K-Means
|
|
|
|