Skip to content

Week 7 Lecture 2

Selecting the optimal π‘˜ in π‘˜-means

Look for diminishing change, and stop before it’s not worth it

π‘˜-medoids

Almost π‘˜-means, but the center points must be elements of the datapoints. (π‘βŠ†π’³οΈ€)

π‘˜-medians

Like π‘˜-medoids, but we are minimizing the 𝐿1 (taxicab) distance instead of 𝐿2 (euclidean).

We define the median of a finite set to be the middle element if the set has odd number of elements, and the average of the two middle elements if it has an even number of elements.

Algorithm for the π‘˜-medians problem is almost the same as the π‘˜-means algorithm, but updating clusters is done via the median rather than the centroid.

Non-linear dimensionality reduction

  • Transforming high-dimensional space into low-dimensional space
  • Can be used for e.g. visualization
  • Often unsupervised

Dimensionality reduction:

Given a dataset 𝒳︀={π‘₯1,…,π‘₯𝑛}βŠ‚β„π· and a dimension 𝑑β‰ͺ𝐷

Find an embedding 𝒴︀={𝑦1,…,𝑦𝑛}βŠ‚β„π‘‘ such that is preserves significant structures of 𝒳︀