Generate MATLAB Code from Deep Network Designer - MATLAB & Simulink (original) (raw)
Main Content
The Deep Network Designer app enables you to generate MATLABĀ® code that recreates the network architecture.
- To recreate the layers in your network, including any initial parameters, select > . The app creates a live script and a MAT file containing the initial parameters (weights and biases) from your network. Run the script to recreate the network layers, including the learnable parameters from the MAT file. Use this option to preserve the weights if you want to perform transfer learning.
- To recreate just the layers in your network, select > . This network does not contain initial parameters, such as pretrained weights.
Running the generated script returns the network architecture as adlnetwork
object. For an example of training a network exported fromDeep Network Designer, see Get Started with Deep Network Designer.
This image shows an example live script generated using Deep Network Designer.
See Also
Deep Network Designer | trainnet | trainingOptions | dlnetwork