How to Show the Weight or Bias in a Neural Network?
Afficher commentaires plus anciens
How to show the weight/bias from every layer in my neural network? I am doing a feedforward neural network with 2 hidden layers. Furthermore, how to determine how many hidden layers should I use in a neural network? Currently I have 3 inputs and 1 output. When I want to increase the hidden layer to 3, an error occurred saying that I have not sufficient of input for 3 hidden layers.
1 commentaire
Shani
le 19 Nov 2013
I am trying to create a neural network, would you have any notes that I can use to aid me with that at all? please
Réponse acceptée
Plus de réponses (2)
Manu R
le 6 Mar 2011
Modifié(e) : John Kelly
le 19 Nov 2013
Neural net objects in MATLAB have fields you can access to determine layer weights and biases.
Suppose:
mynet = feedforwardnet % Just a toy example, without any training
weights = mynet.LW
biases = mynet.b
% weight and bias values:
%
% IW: {2x1 cell} containing 1 input weight matrix
% LW: {2x2 cell} containing 1 layer weight matrix
% b: {2x1 cell} containing 2 bias vectors
2 commentaires
Kai Hao Then
le 27 Mar 2011
Rahul
le 18 Avr 2013
Display "weights" in this example and it will show numbers.
Rahul
le 18 Avr 2013
2 votes
or open "weights" in the Workspace.
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!