Links for the Clustering Lab (March 31)
(PDF) Description of the homework (and lab)
Videos working through Exercise 1:
(Video) Exercise 1, K-means example (Matlab)
(Video) Exercise 1, Neural Gas (Matlab)
(Video) Exercise 1, DBSCAN example (Matlab)
Files you might need to download (Data files and scripts from the videos above).
(Matlab data file) HWMar26data.mat (right-click and "Save Link As...")
K-Means clustering files
(Python file) app1KM.py
(Matlab script file) app1KM.m
Neural Gas clustering files
(Python file) app1NG.py
(This is a stand-alone file)
(Matlab script file) app1NG.m
(This file needs the functions below)
(Matlab function) NeuralGasNetwork.m (the main function we need)
(Matlab function) PlotResults.m (the helper function to plot our results)
(Matlab data file) obstacle1.mat (the data for the old homework problem in the text
DBSCAN files
(Python file) app1DB.py
(This is a stand-alone file)
(Matlab script file) app1DB.m (short for application 1, DBSCAN)
(Matlab function file) DBSCAN.m (the main function we need)
(Matlab function file) PlotClusterinResult.m (helper function to plot results)