0% found this document useful (0 votes)
33 views

Introduction To Data Mining: Computer Engineering Department National University of Technology Islamabad, Pakistan

This document contains instructions for a practice exercise on implementing K-means clustering in MATLAB or Python. Students are asked to: 1) Explain K-means clustering and how to choose the number of clusters, 2) List the main steps of K-means clustering, 3) Reproduce and comment on K-means clustering code using sample data, 4) Plot clusters for sample and Fisher's iris data, 5) Determine the number of clusters for Fisher's iris data, and 6) Plot the resulting clusters and cluster centers.

Uploaded by

Rida
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Introduction To Data Mining: Computer Engineering Department National University of Technology Islamabad, Pakistan

This document contains instructions for a practice exercise on implementing K-means clustering in MATLAB or Python. Students are asked to: 1) Explain K-means clustering and how to choose the number of clusters, 2) List the main steps of K-means clustering, 3) Reproduce and comment on K-means clustering code using sample data, 4) Plot clusters for sample and Fisher's iris data, 5) Determine the number of clusters for Fisher's iris data, and 6) Plot the resulting clusters and cluster centers.

Uploaded by

Rida
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

3

Computer Engineering Department National


University of Technology Islamabad, Pakistan

Introduction to Data Mining


Practice Exercise 08

Name: _______________________________________
Roll Number: __________________________________
Submitted To: __________________________________
Date: _________________________________________
Practice Exercise 08

Objective: Implement K-means Clustering Algorithm in MATLAB/ Python

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.

Hint: see MATLAB documentation for each function e.g., K-means.

Code:
Output:
Results and Discussions:

Conclusion:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy