1. K-Means Algorithm

  • Randomly choose x points as centroids, i-th is μi
  • Divide all points into x groups by determining the minimum distance they have from all x centroids
  • Change the centroids into the average of each groups
  • Repeat until all centroids do not change

2. Obtimization Objective of K-Means

Let c(i) denote the group i-th point belongs to, then our task is

minc,μJ(c,μ)=(x(i)μc(i))2


3. Random Initialization


Randomly pick k examples in which k is the number of centroids
May be stuck in local optima: Init and Run K-Means for many times, pick the solution with lowest J

4. Choose the Number of Clusters


Elbow method / Depending on later purpose
机器学习笔记 ---- K-Means Algorithm

机器学习笔记 ---- K-Means Algorithm

相关文章:

  • 2021-09-21
  • 2021-10-02
  • 2021-09-08
  • 2021-11-03
  • 2021-11-21
  • 2022-12-23
  • 2021-10-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案