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.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Dic. de 2021
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.

Más respuestas (1)

Image Analyst
Image Analyst el 30 de Dic. de 2021
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.

Preguntada:

el 30 de Dic. de 2021

Respondida:

el 30 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by