code generation for prediction and update using coder configurer -凯发k8网页登录

main content

code generation for prediction and update using coder configurer

a coder configurer offers convenient features to configure code generation options, generate c/c code, and update model parameters in the generated code.

  • configure code generation options and specify the coder attributes of model parameters using object properties.

  • generate c/c code for the predict and update functions of the model by using . this requires matlab® coder™.

  • update model parameters in the generated c/c code without having to regenerate the code. this feature reduces the effort required to regenerate, redeploy, and reverify c/c code when you retrain the model with new data or settings. before updating model parameters, use to validate and extract the model parameters to update.

this flow chart shows the code generation workflow for the predict and update functions using a coder configurer.

code generation workflow for the predict and update functions with a coder configurer

  • after training a model, create a coder configurer by using learnercoderconfigurer, generate code by using , and then verify the generated code.

  • after you retrain the model with new data or settings, use to validate and extract the model parameters. if the retrained model is not eligible for an update, then validatedupdateinputs returns an error, and you can then create a coder configurer. otherwise, you can update model parameters in the generated c/c code without having to regenerate the code.

this table shows coder configurer objects corresponding to the supported machine learning models.

modelcoder configurer object
binary decision tree for multiclass classification
svm for one-class and binary classification
linear model for binary classification
multiclass model for svms and linear models
binary decision tree for regression
support vector machine (svm) regression
linear regression

for details and examples, see the reference pages for the coder configurer objects.

see also

| | | |

related topics

网站地图