Initial values used in nftool
13 次查看(过去 30 天)
显示 更早的评论
Hi,
I am using nftool to generate a neural network and using lmtrain. I want to know how do I know what the values are for the following variables:
- initial weights
- initial biases
- initial mu-value
- mu increase factor
- mu decrease factor
Furthermore, how can I change the above parameters in nftool?
For background: I want to investigate the performance of the network using different hidden neurons, but can only actually compare the networks if the initial conditions are identical.
Thanks in advance.
0 个评论
采纳的回答
Walter Roberson
2022-8-25
Initial weights and biases are random.
To be able to compare runs you need to use rng() to set the random seed.
Furthermore, how can I change the above parameters in nftool?
You cannot. nftool is a convenience interface for people who do not need fine control. If you need fine control, then you need to set up everything and call trainlm() yourself.
4 个评论
Walter Roberson
2022-8-25
rng(12345); nftool()
Then run one fitting (only!!) and quit nftool; repeat as needed.
But better yet would be to follow David's suggestion to use the Generate Code feature to convert the run into MATLAB code that you could then edit, including putting in an rng() call, or initializing the weights and biases yourself.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!