Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 645 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 645 Bytes

Distributed-K-Means

This repository contains a distributed implementation of the K-Means clustering algorithm using mpi4py. The implementation leverages the Message Passing Interface (MPI) to distribute the computational workload across multiple processors, enabling efficient clustering of large datasets.

Prerequisites

Before running the code, ensure you have the following installed:

  • Python: Version 3.x
  • mpi4py: Python bindings for MPI

Installing mpi4py

You can install mpi4py using pip:

python -m pip install mpi4py

Usage

mpirun -np <number_of_processes> python parallelkmeans.py