From the course: Machine Learning with Data Reduction in Excel, R, and Power BI
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
K-means clustering in two dimensions
From the course: Machine Learning with Data Reduction in Excel, R, and Power BI
K-means clustering in two dimensions
- [Instructor] We can perform the K-Means algorithm on a single dimension of data. But we can also use the algorithm on two, three or even more dimensions in a model. If we use two dimensions though, we can plot our results on a scatter plot visual with the identified clusters which almost lets us draw outlines around these shapes to emphasize their relationships to one another as clusters. In our studio, we've already set the seed to 100 for our model and created a results variable to store the outcomes from running the algorithm using the K-Means function. Let's update this formula to use two dimensions in the model instead of one, by adding the precipitation field, the rainfall, to our C function to select both these factors. So we now have two fields in the model. Let's also update the number of clusters from two to five because there are five climate zones in the US for these 25 cities. Let's leave the end start…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Calculating distances7m 50s
-
(Locked)
Hierarchical clustering9m 6s
-
Heatmaps and dendrograms6m 30s
-
(Locked)
K-means clustering in one dimension9m 55s
-
(Locked)
K-means clustering in two dimensions5m 37s
-
(Locked)
Determining k9m 8s
-
(Locked)
Challenge: Clustering44s
-
(Locked)
Solution: Clustering8m 57s
-
(Locked)
-
-
-
-