missed facetgrid

pull/34/head
Jen Looper 4 years ago
parent f0134d4b1b
commit aa17805585

@ -298,6 +298,8 @@ sns.FacetGrid(df, hue="artist_top_genre", size=5) \
.add_legend() .add_legend()
``` ```
![Facetgrid](images/facetgrid.png)
In general, for clustering, you can use scatterplots to show clusters of data, so mastering this type of visualization is very useful. In the next lesson, we will take this filtered data and use k-means clustering to discover groups in this data that seems to overlap in interesting ways. In general, for clustering, you can use scatterplots to show clusters of data, so mastering this type of visualization is very useful. In the next lesson, we will take this filtered data and use k-means clustering to discover groups in this data that seems to overlap in interesting ways.
## 🚀Challenge ## 🚀Challenge

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

@ -1,12 +1,14 @@
# K-Means Clustering # K-Means Clustering
![Embed a video here if available](video-url) [![Andrew Ng explains Clustering](https://img.youtube.com/vi/hDmNF9JG3lo/0.jpg)](https://youtu.be/hDmNF9JG3lo "Andrew Ng explains Clustering")
https://www.youtube.com/watch?v=hDmNF9JG3lo
> 🎥 Click the image above for a video: Andrew Ng explains Clustering
https://stanford.edu/~cpiech/cs221/handouts/kmeans.html
## [Pre-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/27/) ## [Pre-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/27/)
Describe what we will learn In this lesson, you will learn how to create clusters using Scikit-Learn and the Nigerian music dataset you imported earlier. We will cover
- Data variance
### Introduction ### Introduction
@ -22,7 +24,7 @@ Preparatory steps to start this lesson
## 🚀Challenge ## 🚀Challenge
Spend some time with this notebook, tweaking parameters. Can you improve the accuracy of the model by cleaning the data more (removing outliers, for example)? What else can you do to create better clusters?
## [Post-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/28/) ## [Post-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/28/)
@ -30,4 +32,7 @@ Preparatory steps to start this lesson
Take a look at Stanford's K-Means Simulator [here](https://stanford.edu/class/engr108/visualizations/kmeans/kmeans.html). You can use this tool to visualize sample data points and determine its centroids. With fresh data, click 'update' to see how long it takes to find convergence. You can edit the data's randomness, numbers of clusters and numbers of centroids. Does this help you get an idea of how the data can be grouped? Take a look at Stanford's K-Means Simulator [here](https://stanford.edu/class/engr108/visualizations/kmeans/kmeans.html). You can use this tool to visualize sample data points and determine its centroids. With fresh data, click 'update' to see how long it takes to find convergence. You can edit the data's randomness, numbers of clusters and numbers of centroids. Does this help you get an idea of how the data can be grouped?
**Assignment**: [Assignment Name](assignment.md) Also, take a look at [this handout on k-means](https://stanford.edu/~cpiech/cs221/handouts/kmeans.html
) from Stanford
**Assignment**: [Try different clustering methods](assignment.md)

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save