An open API service indexing awesome lists of open source software.

https://github.com/klimentlagrangiewicz/k-nn-using-mpi

Implementation of k-NN algorithm using MPI technology
https://github.com/klimentlagrangiewicz/k-nn-using-mpi

ansi-c c90 k-nearest-neighbors knn-classification openmpi parallel-computing

Last synced: about 2 months ago
JSON representation

Implementation of k-NN algorithm using MPI technology

Awesome Lists containing this project

README

        

# k-NN-using-MPI
Implementation of k-NN algorithm in C programming language using MPI technology
## Example of usage
Cloning project and changing current directory:
```
https://github.com/KlimentLagrangiewicz/k-NN-using-MPI
cd k-NN-using-MPI
```
Building from source (Linux):
```
make
```
Building from source (Windows):
```
make windows
```
If building was successfully, you can find executable file in `bin` subdirectory.
Run the program:
```
mpiexec -n 7 ./bin/mpi-knn ./datasets/iris/train.txt ./datasets/iris/test.txt 46 4 150 19 ./datasets/iris/newresult.txt ./datasets/iris/res.txt
```