Obtaining an analytical function of regression and Understanding the reversing concept of the normalisation (of input data) automatically done by Matlab Neural Network.
Info
This question is closed. Reopen it to edit or answer.
Show older comments
I have a problem in understanding the reversing of the normalisation (of input data) automatically done by Matlab. I have followed the questions/answers presented in matworks.com website (using repmap, mapping and reverse mapping functions) but they does not work. if you can help me, this is my code:
entree=xlsread('........\database.xlsx',1); % inputsize=[24960 8]
sortie=xlsread('........\database.xlsx',2); % outputsize=[24960 1]
n=6 ;
net=fitnet(n);
[net,TR]=train(net,entree',sortie');
%evaluation of the analytical function
x=[ 1100 , 1155 , 10 , 1 , 0 , 0.7 , 343.7508 , 1.00017 ];
b1 = net.b {1}; %size=[4 1]
b2 = net.b {2}; %size=[1 1]
IW = net.IW {1,1}; %size=[4 8]
LW = net.LW {2,1}; %size=[1 4]
a1=IW*x'+b1;
y=purelin(LW*(tansig(a1))+b2); % comparison with net(x')~ 10.37error=abs(net(x')-y);
1 Comment
Mohamed El Ibrahimi
on 25 Jun 2020
Edited: Mohamed El Ibrahimi
on 25 Jun 2020
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!