Generated C code of SVM algorithm not accurate

2 views (last 30 days)
Hello,
I have created an SVM-Linear kernel algorithm script on MATLAB for classification of my data. The training gives 98% of validation accuracy and also the prediction for the new data is almost accurate everytime on MATLAB. I have generated C code of the trained model using MATLAB coder for an ARM cortex M4 controller and successfully implemented it. The problem now is the classification result for the new data on the microcontroller as stand-alone is not so accurate as on PC (MATLAB). It predicts the wrong class most of the times. I wonder what the reasons might be. Please help. Thanks.
Regards,
Nikhil
  1 Comment
Sachin Sharma
Sachin Sharma on 23 Sep 2022
Hi, I am also facing the same issues. Did you got the solution for this?
With Regards
Sachin Sharma

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!