How to use a KNN classifier from Matlab in c++
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have been tinkering with the machine learning toolbox in Matlab for a while. Now that I managed to get a good classifier, I would like to test it out of the lab. I was happy to see that Matlab has a built-in code generation tool, but it seems that KNN classifiers are not included.
How would I go about using the trained KNN from Matlab in a c++ program?
Would I have to write my own KNN implementation and use the parameters from the trained one in Matlab? If so, is there such an implementation already?
0 件のコメント
回答 (1 件)
Bernhard Suhm
2018 年 9 月 20 日
Little late, but with MATLAB Coder you can convert a prediction function for KNN to C/C++ code, and then use that with your other code for feature extraction (which you could write in MATLAB also, and then convert - for supported functions).
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!