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 commentaire

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

Connectez-vous pour commenter.

 Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by