Implementation of Clustering using K-Means in Python

The goal of this research is to develop a clustering program using k-means method in Python.Clustering helps to divide data into clusters (or groups) based on their features.K-means is used to assign the data points to the cluster of the closest center.Euclidean distance is used to measure the distances between the data points and the centers.K-means is an iterative method that continues in processing to update the centers until the final clusters are obtained.The basic steps of clustering using k-means are explained: preparing data, initializing centers, computing labels (computing distances, finding minimum distance, and assigning labels), computing clusters, computing error function, updating centers, and plotting clusters.The developed program was tested on an experimental dataset.The program successfully performed the basic steps of clustering using k-means and provided the required results.

Authors

Publication Details

Journal
International Journal of Computer Applications
Published
2024-09-26
DOI
https://doi.org/10.5120/ijca2024923990
Citations
2
Primary Topic
Advanced Clustering Algorithms Research
Type
article
Field-Weighted Citation Impact
0.69
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Implementation of Clustering using K-Means in Python

Ahmad Farhan AlShammari
2 citations
International Journal of Computer Applications
Advanced Clustering Algorithms Research
0.69
article

Implementation of Clustering using K-Means in Python

Ahmad Farhan AlShammari
article en
2 citations

Abstract

The goal of this research is to develop a clustering program using k-means method in Python.Clustering helps to divide data into clusters (or groups) based on their features.K-means is used to assign the data points to the cluster of the closest center.Euclidean distance is used to measure the distances between the data points and the centers.K-means is an iterative method that continues in processing to update the centers until the final clusters are obtained.The basic steps of clustering using k-means are explained: preparing data, initializing centers, computing labels (computing distances, finding minimum distance, and assigning labels), computing clusters, computing error function, updating centers, and plotting clusters.The developed program was tested on an experimental dataset.The program successfully performed the basic steps of clustering using k-means and provided the required results.

International Journal of Computer ApplicationsVol. 186(40)
Openalex Percentile: Top 24%
Advanced Clustering Algorithms Research
0.69
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.