What is formula for finding to Number of Weights in Neural Nework with two Hidden Layers

11 views (last 30 days)
Suppose for neural network with two hidden layers, inputs dimension is "I", Hidden number of neurons in Layer 1 is "H1", Hidden number of neurons in Layer 2 is "H2" And number of outputs is "O", Now what will be the formula for total number of weights in the neural network or total number of synaptic connections?

Accepted Answer

Greg Heath
Greg Heath on 27 Nov 2015
Nw = (I+1)*H1 +(H1+1)*H2 +(H2+1)*O
Hope this helps.
Greg

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!