MATLAB: How to generate the weights and bias values after training a network

neural 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?

Best 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