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
- Host: GitHub
- URL: https://github.com/klimentlagrangiewicz/k-nn-using-mpi
- Owner: KlimentLagrangiewicz
- Created: 2022-10-22T14:03:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T18:23:36.000Z (4 months ago)
- Last Synced: 2025-01-28T18:19:40.578Z (4 months ago)
- Topics: ansi-c, c90, k-nearest-neighbors, knn-classification, openmpi, parallel-computing
- Language: C
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```