Revert Weight and Set Weight in nntool

11 views (last 30 days)
Satrio Yudanto
Satrio Yudanto on 14 Nov 2017
Answered: Prasanna on 4 Jun 2025
hello everyone. i still confused what is the function of revert weight and set weight in neural network toolbox after we create a neural network. can anybody explain to me please? thank you so much

Answers (1)

Prasanna
Prasanna on 4 Jun 2025
Hi Satrio,
It is my understanding that you are working with MATLAB’s Neural Network Toolbox and are unsure about the purpose of the “revert weights” and “set weights” functions .
In the Neural Network Toolbox, “set weights” is used to manually assign specific weight and bias values to your network. This is helpful if you want to initialize the network with custom values instead of using MATLAB's default random initialization, or if you want to load weights from a previously trained model.
On the other hand, “revert weights” is used to restore the network’s weights and biases to the values they had before the most recent training attempt. This is when you want to revert back to the previously better-performing weights.
In summary, these tools give you control over the training process and help in experimenting with different weight initializations or managing model performance. For more information, refer to the following documentations:
Hope this helps!

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!