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 Kommentar

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by