MATLAB: How work app compiler with train regression model

MATLAB Compilerruntime and trainregression 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

Best Answer

MATLAB Compiler does support training regression models such as fitlm or other regression functions in Statistics and Machine Learning Toolbox and trainNetwork which trains deep neural network regression model in Deep Learing Toolbox. Here is a list of toolboxes which are supported by MATLAB Compiler.
As the list says, UIs are not supported. That means we cannot compile the code which call Regression Leaner App. But MATLAB functions which were exported from Regression Learner App can be compiled.
Before purchasing MATLAB Compiler, you can try a trial license from the following link. It's better to confirm you can achieve your goal.