Closed mtabor150 closed 9 years ago
Make semi automated elbow method function to display average distance to centroid using kmeans, given a range of k.
elbow(k_range, vectors, distance_function)
It should print a graph and return a 2xN array of k and the corresponding average distance.
Make semi automated elbow method function to display average distance to centroid using kmeans, given a range of k.
It should print a graph and return a 2xN array of k and the corresponding average distance.