Question on exporting code in Classification Learner App

The following question is on exporting code in the Classification Learner App
In the help page on "Export Classification Model To Predict New Data," it states in a note that
"If you generate MATLAB code from a trained optimizable model, the generated code does not include the optimization process."
Is it possible to access the code that includes the optimization process. I am interested to use the same optimization process on new data, rather than using the trained model on new data.

 采纳的回答

For most such routines, the training process cannot have code generation done for the training process, only for classification or prediction using an already-trained network.

更多回答(1 个)

I think you're stuck using the Classification Learner app, unless you know in advance what routine to use, like kmeans, k nearest neighbors, or whatever. In that case you can look up the documentation for that particular function to train a model with your data from your own script/function code.

类别

Community Treasure Hunt

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

Start Hunting!

Translated by