MATLAB: How to show bias and weight in ann

annbiasneural networkweight

How to show the weight and bias from every layer in my neural network? Currently I have 24 inputs and 2 output.
please show me on simple example code

Best Answer

You can see the weights and biases of the network using the IW, LW, b properties of network
net.IW % input weights
net.LW % layer weights
net.b % biases