How to predict data using the trained models?

3 ビュー (過去 30 日間)
Mehbubul Haque
Mehbubul Haque 2022 年 1 月 17 日
回答済み: Image Analyst 2022 年 1 月 17 日
Hi, i made few trained models using LSTM, or regression learner app etc. I want to know after i generate the code export the trained model. How can i use this to predict new values? How can i Input new dataset and get the predictions? Everywhere i see, i just see people making models and showing how to make the model. But how can I use those trained models?

回答 (1 件)

Image Analyst
Image Analyst 2022 年 1 月 17 日
Click Export from the app and save it to 'trainedModel.mat'. Then load it in and it will tell you in the command window how to call the predict() function.
trainedModel = load('trainedModel.mat') % No semicolon.

カテゴリ

Help Center および File ExchangeClassification Learner App についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by