how can i find my model of KNN [closed]

asked 2016-04-25 04:51:01 -0500

Zahraa11 gravatar image

updated 2016-04-25 05:09:45 -0500

berak gravatar image

I am a new in Opencv I used Nearest of Opencv to train my app (android app) to detect user activities I already trained my data but unfortunately i couldn't find the generated model of the algorithm For that, I forced to train my code each time I start the app I think it has to be model that I can use it whenever I want but how can I find it?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-20 04:35:35.966019



unfortunately, you cannot save/load a knn model from java, this means, you have to retrain any time your app starts (and keep your traindata around)

berak gravatar imageberak ( 2016-04-25 05:09:27 -0500 )edit

is there any other way?

Zahraa11 gravatar imageZahraa11 ( 2016-04-25 05:28:35 -0500 )edit

is there any other ways?

Zahraa11 gravatar imageZahraa11 ( 2016-04-25 05:28:51 -0500 )edit

use an SVM instead ? (it's the only ml class atm. where you can save/load your model from java or python)

berak gravatar imageberak ( 2016-04-25 05:31:55 -0500 )edit

how can i save or load model in SVM

Zahraa11 gravatar imageZahraa11 ( 2016-11-26 06:57:25 -0500 )edit