cannot save the svm model

I have imported the SVM classification model learned in classification app. I have tried both of the codes below to save it but I get error. What is the probelsm?
saveLearnerForCoder(trainedSVMModel.ClassificationSVM, 'modelSVM');
saveCompactModel(trainedSVMModel.ClassificationSVM)
Here is the error I get for both of them:
Reference to non-existent field 'ClassificationSVM'.
Error in ex (line 5)
saveLearnerForCoder(trainedSVMModel.ClassificationSVM, 'modelSVM')

1 Comment

Please provide a way to recreate the error so anyone from the community can help.

Sign in to comment.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Commented:

on 8 Jun 2020

Community Treasure Hunt

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

Start Hunting!