You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.mathworks.com/matlabcentral/fileexchange/135381-machine-learning-methods-clustering) or [](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Machine-Learning-Methods-Clustering&project=MLMethodsClustering.prj&file=README.mlx)
_Created with R2023b. Compatible with R2023b and later releases._
11
+
_Created with R2024b. Compatible with R2024b and later releases._
12
12
13
13
# Information
14
14
15
15
This curriculum module contains interactive [MATLAB® live scripts](https://www.mathworks.com/products/matlab/live-editor.html) that apply fundamental concepts and basic terminology related to clustering.
16
16
17
-
<aname="H_F00D98E4"></a>
17
+
18
18
## Background
19
19
20
-
You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers distance-based, density based, and probabilistic algorithms including k-means, DBSCAN, and GMMs. It also includes examples of applying each algorithm to a data set containing beak measurements for different species of penguins.
20
+
You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers distance\-based, density based, and probabilistic algorithms including k\-means, DBSCAN, and GMMs. It also includes examples of applying each algorithm to a data set containing beak measurements for different species of penguins.
21
21
22
22
23
23
The instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the <imgsrc="Images/image_0.png"width="19"alt="image_0.png"> Stop button in the **RUN** section of the **Live Editor** tab in the MATLAB Toolstrip.
@@ -26,59 +26,60 @@ The instructions inside the live scripts will guide you through the exercises an
26
26
27
27
Contact the [MathWorks teaching resources team](mailto:onlineteaching@mathworks.com) if you have a question or would like to provide any feedback.
28
28
29
-
<aname="H_30BC7141"></a>
29
+
30
30
## Prerequisites
31
31
32
32
This module assumes knowledge of basic statistics and probability, including Gaussian distributions and Bayes' theorem. If you would like to refresh your knowledge on these topics, more courseware on Gaussian distributions can be found [here](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Descriptive-Stats-and-Probability&project=StatsAndProb.prj&file=continuousDistributions.mlx), and more courseware on Bayes' theorem can be found [here](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Probability-Theory&project=Probability.prj&file=inferenceBayes.mlx). There is minimal MATLAB knowledge required for these scripts, but you can use [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted) as a resource to acquire familiarity with live scripts and MATLAB syntax.
33
33
34
-
<aname="H_330E72C3"></a>
34
+
35
35
## Getting Started
36
36
### Accessing the Module
37
37
### **On MATLAB Online:**
38
38
39
-
Use the [<imgsrc="Images/image_1.png"width="154"alt="image_1.png">](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Machine-Learning-Methods-Clustering&project=MLMethodsClustering.prj) link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.
39
+
Use the [<imgsrc="Images/image_1.png"width="154"alt="image_1.png">](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Machine-Learning-Methods-Clustering&project=MLMethodsClustering.prj) link to download the module. You will be prompted to log in or create a MathWorks account. The project will be loaded, and you will see an app with several navigation options to get you started.
40
40
41
41
### **On Desktop:**
42
42
43
-
Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double-click on [MLMethodsClustering.prj](MLMethodsClustering.prj). It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.
43
+
Download or clone this repository. Open MATLAB, navigate to the folder containing these scripts and double\-click on [MLMethodsClustering.prj](matlab: openProject("MLMethodsClustering.prj")). It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.
44
+
44
45
46
+
Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add\-On Explorer. To install an add\-on, go to the **Home** tab and select <imgsrc="Images/image_2.png"width="16"alt="image_2.png"> **Add-Ons** > **Get Add-Ons**.
45
47
46
-
Ensure you have all the required products ([listed below](#H_E850B4FF)) installed. If you need to include a product, add it using the Add-On Explorer. To install an add-on, go to the **Home** tab and select <imgsrc="Images/image_2.png"width="16"alt="image_2.png"> **Add-Ons** > **Get Add-Ons**.
47
48
48
-
<aname="H_E850B4FF"></a>
49
49
## Products
50
50
51
51
MATLAB® is used throughout. Tools from the Statistics and Machine Learning Toolbox™ are used frequently as well.
*\* If you are viewing this in a version of MATLAB prior to R2023b, you can view the learning outcomes for each script*[*here*](https://www.mathworks.com/matlabcentral/fileexchange/135381-machine-learning-methods-clustering)
57
+
58
+
## [**ClusteringIntro.mlx**](ClusteringIntro.mlx)
57
59
||||
58
60
| :-- | :-- | :-- |
59
-
| <imgsrc="Images/image_3.png"width="251"alt="image_3.png"> |**In this script, students will...** - Learn what clustering is and what types of problems it can be applied to - Explore a step-by-step example of using k-means to cluster random data - Apply k-means to a real world data set, optimizing parameters along the way |**Academic disciplines** - Machine Learning - Artificial Intelligence |
61
+
| <imgsrc="Images/image_3.png"width="251"alt="image_3.png"> <br> |**In this script, students will...**<br> $\bullet$ Learn what clustering is and what types of problems it can be applied to <br> $\bullet$ Explore a step\-by\-step example of using k\-means to cluster random data <br> $\bullet$ Apply k\-means to a real world data set, optimizing parameters along the way <br> |**Academic disciplines**<br> $\bullet$ Machine Learning <br> $\bullet$ Artificial Intelligence <br> |
| <imgsrc="Images/image_4.png"width="209"alt="image_4.png"> |**In this script, students will...** - Learn about two more clustering methods: DBSCAN and GMMs - Work through step-by-step examples of applying each algorithm to an example data set - Cluster the same real world data set using each method, considering their pros and cons - Learn about a variety of methods to evaluate clustering results |**Academic disciplines** - Machine Learning - Artificial Intelligence - Statistics |
67
+
| <imgsrc="Images/image_4.png"width="209"alt="image_4.png"> <br> |**In this script, students will...**<br> $\bullet$ Learn about two more clustering methods: DBSCAN and GMMs <br> $\bullet$ Work through step\-by\-step examples of applying each algorithm to an example data set <br> $\bullet$ Cluster the same real world data set using each method, considering their pros and cons <br> $\bullet$ Learn about a variety of methods to evaluate clustering results <br> |**Academic disciplines**<br> $\bullet$ Machine Learning <br> $\bullet$ Artificial Intelligence <br> $\bullet$ Statistics <br> |
0 commit comments