How do I move a SVM model from Matlab to VBA?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Atique Malik
el 6 de Mzo. de 2020
Comentada: Atique Malik
el 4 de Abr. de 2020
I have a fitted model for SVM Gaussian regression. I have derived that or obtained that from the Stats and Machine Learning Toolbox. I now want to deply that in VBA on my machine, and demo the model to fellow engineers. I can't seem to locate teh form of teh equation and coefficients. I know what a Gaussian kernel is and all that, but where are the coefficients? Thanks for your help
0 comentarios
Respuesta aceptada
Sourabh Kondapaka
el 24 de Mzo. de 2020
Editada: Sourabh Kondapaka
el 24 de Mzo. de 2020
To extract Weight_Vector from SVM Model :
Weight_vector = SVMModel.Alpha' * SVMModel.SupportVectors;
% To extract Bias Value from SVM Model
Bias = SVMModel.Bias;
% Now to write these into a file
writematrix(Weight_vector, ‘weight_vector.csv’ );
writematrix(Bias, ‘bias.csv’);
Refer the following link for “writematrix()” function
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!