We implemented the 2D Kmeans algorithm in three different ways:
- A sequential mode in Python
- A Parallel mode in OpenMP
- A Parallel mode in Cuda
For more information, read the report or the presentation
In order to get a local copy and run some tests, follow these simple steps.
- Clone the repo
git clone https://github.com/FedeNoce/Kmeans.git
- Chose the implementation:
kmeans_seq.py
for sequential,Kmeans_openMp.cpp
for parallel with OpenMP,2D_kmeans_cuda.cu
for parallel with CUDA. - Choose the dataset and copy the file path in the code
- Set the parameters with your settings
- Run the tests
- Evaluate the clustering of the tests running
evaluate_kmeans.py
Parallel Computing © Course held by Professor Marco Bertini - Computer Engineering Master Degree @University of Florence