formwb
(To be removed) Form bias and weights into single vector
formwb 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.
Syntax
formwb(net,b,IW,LW)
Description
formwb(net,b,IW,LW) takes a neural network and bias
b, input weight IW, and layer weight
LW values, and combines the values into a single vector.
Examples
Here a network is created, configured, and its weights and biases formed into a vector.
[x,t] = simplefit_dataset; net = feedforwardnet(10); net = configure(net,x,t); wb = formwb(net,net.b,net.IW,net.LW)
Version History
Introduced in R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork