in MATLAB R 2023 where can i see the weights and bias value
4 次查看(过去 30 天)
显示 更早的评论
in MATLAB R 2023 where can i see the weights and bias value
回答(1 个)
R
2023-11-14
Hi Vengatesh,
I understand that you are unable to see the weights and bias values of a neural network via the Network tab.
You can work around this issue by accessing these values programmatically. To do this, you can use “getwb” and “separatewb” functions to get and Separate biases and weight values from weight/bias vector. For example:
[x,t] = simplefit_dataset;
net = feedforwardnet(20);
net = train(net,x,t);
wb = getwb(net);
[b,iw,lw] = separatewb(net,wb);
In the above example, “b”, “iw” and “lw” are bias, input weights and layer weights respectively.
Refer to the following MATLAB Documentation to know more about the “getwb” and “separatewb” functions:
- https://www.mathworks.com/help/deeplearning/ref/getwb.html
- https://www.mathworks.com/help/deeplearning/ref/separatewb.html
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!