How can I generate the weights and bias values after training a network?

As a process of understanding the workings of Neural Network Fitting Tool (nftool). I loaded the house dataset, performed the training and obtained a network arcitecture. 1. I wanted to see the computed weights and bias used. How can these be genetrated. 2. How do I applied the network architecture to new inputs to obtain corresponding output?

1 Comment

Here's the answer:
https://www.mathworks.com/help/deeplearning/ref/separatewb.html

Sign in to comment.

 Accepted Answer

1. Single vector form
wb = getwb(net)
% WARNING: The syntax in help getwb and doc getwb are INCORRECT !!
2. Multiple matrix form
IW = cell2mat(net.IW)
b = cell2mat(net.b)
LW = cell2mat(net.LW)
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

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!