0% found this document useful (0 votes)
2 views3 pages

DMWLAB7

Uploaded by

Azad Hallur
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)
2 views3 pages

DMWLAB7

Uploaded by

Azad Hallur
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

School of Computer Science, Engineering and Applications (SCSEA)

Academic Year: 2025-26 [Link] S.Y (Sem IV)

Subject: Data Mining and Warehousing (CSE2103)

LAB - 8
Name: Azad Sharanbasappa Hallur PRN: 20250812102

Title

Clustering Analysis using K-Means Algorithm

Aim

To apply clustering techniques to group similar data points and analyze patterns using the K-
Means Clustering algorithm.

Experiment / Procedure

1. Import Libraries
Import required libraries such as Pandas, NumPy, Matplotlib, and Scikit-learn.

2. Load Dataset
Load the dataset using read_csv() and display sample data.

3. Data Preprocessing
o Handle missing values
o Select relevant features
o Normalize/scale the data

20250812102 1
4. Choose Number of Clusters (K)
o Use Elbow Method to determine optimal number of clusters

5. Apply K-Means Algorithm


o Initialize K-Means model
o Fit the model on dataset
o Assign cluster labels to each data point

6. Visualization
o Plot clusters using scatter plot
o Different colors represent different clusters

7. Analysis
o Interpret cluster groups
o Identify patterns among grouped data

Result

Conclusion

 K-Means Clustering is effective for grouping unlabeled data.


 It helps in discovering hidden patterns and structures in data.
 Clustering is useful for segmentation and decision-making.

20250812102 2
20250812102 3

You might also like