Neural Network Toolbox |
Change network weights and biases to previous initialization values
Syntax
Description
revert (net)
returns neural network net
with weight and bias values restored to the values generated the last time the network was initialized.
If the network has been altered so that it has different weight and bias connections or different input or layer sizes, then revert
cannot set the weights and biases to their previous values and they will be set to zeros instead.
Examples
Here a perceptron is created with a two-element input (with ranges of 0 to 1, and -2 to 2) and one neuron. Once it is created we can display the neuron's weights and bias.
The initial network has weights and biases with zero values.
We can change these values as follows.
We can recover the network's initial values as follows.
See Also
randtop | satlin |
© 1994-2005 The MathWorks, Inc.