genFunction
(To be removed) Generate MATLAB function for simulating shallow neural network
genFunction will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Description
This function generates a MATLAB® function for simulating a shallow neural network. genFunction
does not support deep learning networks such as convolutional or LSTM networks. For more
information on code generation for deep learning, see Generate Code and Deploy Deep Neural Networks.
genFunction(
generates a complete stand-alone MATLAB function for simulating a neural network including all settings, weight and bias
values, module functions, and calculations in one file. The result is a standalone MATLAB function file. You can also use this function with MATLAB
Compiler™ and MATLAB
Coder™ tools.net,pathname)
genFunction(___,'MatrixOnly','yes') overrides the default
cell/matrix notation and instead generates a function that uses only matrix arguments compatible
with MATLAB
Coder tools. For static networks, the matrix columns are
interpreted as independent samples. For dynamic networks, the matrix columns are interpreted as
a series of time steps. The default value is 'no'.
genFunction(___,'ShowLinks','no') disables the default
behavior of displaying links to generated help and source code. The default is
'yes'.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2013bSee Also
Time Series Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork