How work app compiler with train regression model
古いコメントを表示
Hi.
Hi everyone, I made an application to predict the load demand. For this, I used a function of the train regression model of the regression learning toolbox, and put this function in the application designer, to generate an application with the application compiler toolbox. That idea is that this application can be used with co-workers without matlab.
About the train crisis, I do not make a previously trained model, instead of, I want that users to always use the application of the application regression train and make a new model to predict.
The question is: in the application designer, I use the [trainingModel] = trainRegressionModel (trainingData) function; .... and it works perfect. But I don't know if this works in the application on compiler application. The Matlab runtime motor can do it? Or need a one model pre trained?
I don't have the application compiler, and before buying it
採用された回答
その他の回答 (1 件)
robin thomas
2019 年 12 月 10 日
0 投票
I am getting the below error in matlab command line;
function ypred = mypredict(tbl)
↑
Error: Function definition not supported in this context. Create functions in code file.
what is 'tbl'?
1 件のコメント
Kojiro Saito
2019 年 12 月 16 日
編集済み: Kojiro Saito
2019 年 12 月 16 日
You need to create a file (.m) for defining functions. In your case, create mypredict.m and paste your function codes into the file. I suppose the input argument "tbl" would be table data.
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!