- Prove that the SSE converges with zero when we increase the number of desired clusters, K.
- Using the example in this chapter, change the number of centroids and see how the final result varies.
- What will happen if we move each cluster closer together?
- There are multiple enhanced initialization methods of K-means. Let's try out the following initial centroids:
- Forgy method: Choose K observations from the data points as centroids.
- Random partition: Assign each data point to a cluster randomly.
- Replace the naive K-means implementation that we used with the implementation in machinelearn.js.
- It's not guaranteed that the K-means algorithm can be converged with the global optima. Illustrate where K-means only returns poor results.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand