Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kvarada committed Oct 31, 2023
1 parent 0a26b5c commit 0afc91e
Show file tree
Hide file tree
Showing 59 changed files with 7,145 additions and 480 deletions.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/cnn-ex.png
17 changes: 0 additions & 17 deletions _sources/lectures/14_K-Means.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
" - Choosing K ([video](https://youtu.be/M5ilrhcL0oY))\n",
"- iClicker questions (~10 mins) \n",
"- Break (~5 mins)\n",
"- Introduction to GMMs (~15 mins)\n",
"- Demo: Clustering images (~15 mins)\n",
"- Final comments and summary (~5 mins)"
]
Expand Down Expand Up @@ -126,9 +125,6 @@
"- Broadly explain the K-Means algorithm apply `sklearn`'s `KMeans` algorithm. \n",
"- Point out pros and cons of K-Means and the difficulties associated with choosing the right number of clusters. \n",
"- Create the Elbow plot and Silhouette plots for a given dataset. \n",
"- Broadly explain the idea of Gaussian mixture models (GMMs) and the differences between K-Means and GMMs. \n",
"- Broadly explain the covariance type hyperparameter of GMMs. \n",
"- Broadly explain model selection in GMMs. \n",
"- Broadly explain the difference between soft cluster assignment vs. hard cluster assignment. \n",
"- Use clustering for the problem of image clustering and interpret clusters. \n",
"- Demonstrate how input data representation can influence clustering results. "
Expand Down Expand Up @@ -3042,19 +3038,6 @@
"- Two popular ways to provide insight into how many clusters are reasonable for the give problem are: **the Elbow method** and **the Silhouette method**. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Clustering with Gaussian mixture models**\n",
"\n",
"- Gaussian mixture models model the distribution of data as a mixture of $k$ Gaussian components. \n",
"- Each Gaussian has a different mean vector and co-variance matrix and a weight associated with it, which control its location, shape, and complexity. \n",
"- You can control and shape and complexity of the Gaussians by restricting the covariance matrix. There are four common ways to do this in `sklearn`: spherical, diag, tied, full \n",
"- Gaussian mixture models are a probabilistic model; they assign a probability to each data point belonging to each cluster. In `sklearn`, we can access these soft assignments using `predict_proba` scores. \n",
"- The model also gives us the log likelihood of fitting the data. It's possible to calculate AIC and BIC scores and pick the number of components where these scores are the lowest. "
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down
Loading

0 comments on commit 0afc91e

Please sign in to comment.