Generated C code of SVM algorithm not accurate
2 次查看（过去 30 天）
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.