Neural Network Toolbox™ Previous page   Next Page 
revert
 Provide feedback about this page

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 is 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 are 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, you can display the neuron's weights and bias.

The initial network has weights and biases with zero values.

Change these values as follows:

You can recover the network's initial values as follows:

See Also

init, sim, adapt, train


 Provide feedback about this page 

Previous page removerows roc Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS