Neural Network Toolbox | ![]() ![]() |
Get all network weight and bias values as a single vector
Syntax
X = getx(net)
Description
This function gets a network's weight and biases as a vector of values.
NET -
Neural network.
X -
Vector of weight and bias values.
Examples
Here we create a network with a two-element input, and one layer of three neurons.
net = newff([0 1; -1 1],[3]);
We can get its weight and bias values as follows:
net.iw{1,1} net.b{1}
We can get these values as a single vector as follows:
x = getx(net);
See Also
![]() | gensim | gridtop | ![]() |