Learn Before
  • Specifying K = the number of the nearest neighbors for a k-Nearest Neighbors algorithm

  • K-Means Clustering

The Elbow Method for Selecting Optimal K

One popular way to determine the optimal number of k is by using the elbow method. To use this method, you will run K means n times, each time adding another cluster. After each iteration you graph a score for that number of k. The point in the graph where there is an “elbow” is the point of optimal clusters. The picture below shows an example graph that would be used for determining the number of clusters -- in this example case 3 clusters is optimal

Image 0

0

6

4 years ago

Tags

Data Science

Related
  • The Elbow Method for Selecting Optimal K

  • Which of these could be an acceptable sequence of operations using scikit-learn to apply the k-nearest neighbors classification method?

  • How might K-means be used in conjunction with supervised methods to predict on an unlabeled data set?

  • Medium: Difference between K-Means and KNN

  • Math/Python Explanation: Difference Between K-Means and KNN

  • Algorithm of K-means Clustering

  • Image of K-Means Clustering Process

  • Limitations of K-means clustering

  • Advantages of K-means clustering

  • Picking optimal k value

  • The Elbow Method for Selecting Optimal K

  • Hands-On Machine Learning with R: Chapter 20 K-means Clustering

Learn After
  • Reference: The Elbow Method for Selecting Optimal K