ANN Matlab
ANN Matlab
ANN Matlab
in Matlab
Hany Ferdinando
Architecture (single neuron)
a = f(Wp + b)
Neural Network in Matlab 2
Transfer Function
Training-Blue Goal-Black
weight_init = net.IW{1,1}
0.6
bias_init = net.b{1}
0.5
0.8
net = newp([0 1; 0 1],1);
0.7
Training-Blue Goal-Black
weight_init = net.IW{1,1}
bias_init = net.b{1} 0.6
0.5
net.trainParam.epochs = 20; 0.4
net = train(net,P,T);
0.3
weight_final = net.IW{1,1}
bias_final = net.b{1} 0.2
0
0 0.5 1 1.5 2 2.5 3 3.5 4
4 Epochs
0.8
net = newp([0 1; 0 1],1);
0.7
Training-Blue Goal-Black
weight_init = net.IW{1,1}
0.6
bias_init = net.b{1}
0.5
net.trainParam.epochs = 20; 0.4
net = train(net,P,T);
0.3
weight_final = net.IW{1,1}
bias_final = net.b{1} 0.2
0
0 1 2 3 4 5 6
6 Epochs
0.8
net = newp([0 1; 0 1],1);
0.7
Training-Blue Goal-Black
weight_init = net.IW{1,1}
bias_init = net.b{1} 0.6
0.5
net.trainParam.epochs = 20;
0.4
net = train(net,P,T);
weight_final = net.IW{1,1} 0.3
0
0 0.5 1 1.5 2 2.5 3 3.5 4
4 Epochs
xk+1 = xk - kgk