Introduction To Data Mining: Computer Engineering Department National University of Technology Islamabad, Pakistan
Introduction To Data Mining: Computer Engineering Department National University of Technology Islamabad, Pakistan
Name: _______________________________________
Roll Number: __________________________________
Submitted To: __________________________________
Date: _________________________________________
Practice Exercise 08
Tasks:
1. Explain what is K-means clustering and how we choose the number of clusters?
2. Write the main steps of K-means clustering?
3. Reproduce the given code of K-means clustering(using clust.mat file) and
explain/comment each line of code i.e. input, output attributes and function.
4. Plot 2D and 3D views of give data and label both figures.
5. Implement K-means for fisheriris.mat data (Load Fisher's iris data set with the petal
lengths and widths).
6. Determine the no. of clusters for fishers data.
7. Plot clusters and cluster centers for each cluster.
Code:
Output:
Results and Discussions:
Conclusion: