Why do I get "cannot load an object of class 'compactcl?assificati?onECOC'" after compiling a standalone application of a machine learning model?
I have a trained machine learning model saved as a MAT file that is loaded in my App Designer application.
When I compile the app into a standalone application with MATLAB Compiler, I get the following error when running it:
cannot load an object of class 'compactclassificationECOC'
% App designer method function myAppCallback(app, event) %#function classreg.learning.classif.CompactClassificationECOC [ additional code ]
The "function pragma" was added based on the "ClassificationSVM" values in the trained model struct:
trainedModel = struct with fields: predictFcn: @(x)exportableModel.predictFcn(predictorExtractionFcn(x)) ClassificationSVM: [1×1 classreg.learning.classif.CompactClassificationECOC] About: 'This struct is a trained model exported from Classification Learner R2017b.' HowToPredict: 'To make predictions on a new predictor column matrix, X, use: ...
Multiple functions can be added to the pragma with spaces:
%#function classreg.learning.classif.CompactClassificationECOC classreg.learning.regr.RegressionModel
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.