https://github.com/wepe/knncp
KNN, C++ implement and Python binding
https://github.com/wepe/knncp
Last synced: 2 months ago
JSON representation
KNN, C++ implement and Python binding
- Host: GitHub
- URL: https://github.com/wepe/knncp
- Owner: wepe
- Created: 2015-09-10T14:40:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-10T14:47:00.000Z (almost 11 years ago)
- Last Synced: 2025-01-10T21:26:07.200Z (over 1 year ago)
- Language: C++
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
###C++ implement of KNN and Python binding (a practice)
- `knn.h`,`knn.cpp`
- `utils.h`,`utils.cpp`
- `main.cpp`
- `makefile`, compile and generate `main`
- `knn.i`,use swig to wrap c++ for python. ( **still some bug to fix**)
- https://github.com/swig/swig/tree/master/Examples/python
- http://www.swig.org/Doc3.0/SWIGDocumentation.html#SWIGPlus_class_extension
- other tools: ctypes,cython
- `X.dat`,`y.dat`,data file.
###TO DO
- apply Eigen matrix instead of ` vector > `
- task parallelism (mainly the `predict` method).
- KDTree