Export Classification Model for Deployment to MATLAB Production Server
After you train a model in Classification Learner, you can export the model for deployment to MATLAB® Production Server™ (requires MATLAB Compiler SDK™).
Select the trained model in the Models pane. In the Export section of the Learn tab, click Export Model and select Export Model for Deployment to Production Server.
In the Select Project File for Model Deployment dialog box, select a folder and name for your project file. If a folder already contains a project file, you cannot create a new project file in that folder or any of its subfolders. Click Save. Two new tabs appear in the MATLAB Editor window:
predictFunction.m
andDeployedClassificationModel
.In the autogenerated
predictFunction.m
file, inspect and modify the code, as needed.To use the MATLAB Production Server Compiler to package your model and prediction function, click the
DeployedClassificationModel
tab in the MATLAB Editor window. You can simulate the model deployment to MATLAB Production Server by clicking the Test Client button, and then build your code by clicking the Package button.
For an example, see Deploy Model Trained in Classification Learner to MATLAB Production Server. For more information, see Create MATLAB Production Server Archive Using Production Server Archive Compiler App (MATLAB Compiler SDK).
See Also
Topics
- Select Data for Classification or Open Saved App Session
- Train Classification Models in Classification Learner App
- Generate MATLAB Code to Train Model with New Data
- Export Classification Model to Predict New Data
- Export Classification Model to Make Predictions in Simulink
- Export Classification Model to MATLAB Coder to Generate C/C++ Code