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 comentario

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

Iniciar sesión para comentar.

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Jun. de 2013

Comentada:

el 5 de Dic. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by