getwb
(To be removed) Get network weight and bias values as single vector
getwb 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
getwb(net)
Description
getwb(net) returns a neural network’s weight and bias values as a
single vector.
Examples
Here a feedforward network is trained to fit some data, then its bias and weight values are formed into a vector.
[x,t] = simplefit_dataset; net = feedforwardnet(20); net = train(net,x,t); wb = getwb(net)
Version History
Introduced in R2010bSee Also
Time Series
Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork