top of page
HD-wallpaper-python-amoled-coding-coding-dark-dark-programming-python-sky-universe_edited.

CLUSTERING

DATA PREPARATION

We begin by loading the Iris dataset and performing exploratory data analysis to understand the structure and distribution of the data. The Iris dataset is a well-known dataset that contains measurements for 150 iris flowers from three different species.

445373067_821003696153399_8238646515356911925_n.png
445373055_26417798871140535_1141900332105015544_n.png
441999634_485453033812435_8479896408760411644_n.png
445374186_449076444392738_5840018057722826474_n.png
445377133_1909565922835035_8235382131091206469_n.png

CLUSTERING

FEATURE ENGINEERING

The features are standardized using StandardScaler to ensure that they have a mean of 0 and a standard deviation of 1. This step is crucial for clustering algorithms like K-Means to perform well.

438159150_1185554659287327_8627821128774960313_n.png

CLUSTERING

MODELING

K-Means clustering is applied with 3 clusters. The choice of 3 clusters is based on the known number of classes in the Iris dataset. We visualize the clusters to understand how well the algorithm has performed.

441316748_990637472775257_1510760463562117007_n.png

CLUSTERING

MODEL EVALUATION

The silhouette score is calculated to evaluate the clustering performance. A higher silhouette score indicates better-defined clusters.

441053011_1458961328081386_1947698943579330972_n.png

REFLECTION

Through this exercise, I gained practical experience in implementing machine learning models in Python. I learned how to preprocess data, engineer features, and build and evaluate models. The clustering task enhanced my understanding of unsupervised learning, while the Association Rule Mining task introduced me to a different aspect of data mining and pattern discovery. These projects reinforced concepts covered in the course, such as data preprocessing and model evaluation techniques. Overall, this project helped me broaden my understanding of machine learning and its applications in real-world scenarios.

CODE IMPLEMENTATION

JUPYTER NOTEBOOK

© 2022 by Lawrence Acodili
Powered and secured by Wix

Call

+639615667908

Write

acodililawrence200.wixsite.com/lawrenceaco

Follow

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram
bottom of page