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.

 採用された回答

Walter Roberson
Walter Roberson 2021 年 12 月 30 日

0 投票

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 件)

Image Analyst
Image Analyst 2021 年 12 月 30 日

0 投票

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.

カテゴリ

質問済み:

2021 年 12 月 30 日

回答済み:

2021 年 12 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by