| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Change network weights and biases to previous initialization values
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.
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:
| Provide feedback about this page |
![]() | removerows | roc | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |