P=[196 35 234 232 59 244 243 57 226; ... 188 15 236 244 44 228 251 48 230; ... 246 48 222 225 40 226 208 35 234]'; ...% testing images
N=[196 35 234 232 59 244 243 57 226; ... 188 15 236 244 44 228 251 48 230; ... 246 48 222 225 40 226 208 35 234]';...% N=[208 16 235 255 44 229 236 34 247; ...
% 245 21 213 254 55 252 215 51 249; ...
% 248 22 225 252 30 240 242 27 244]'; ...
% Normalization
P=P/256;N=N/256;% display the training images
% targets
img=[196 35 234; 232 59 244 ; 243 57 226]'; T=img/256;;% targets% T=[0.8 0.06 0.9;
% 0.9 0.17 0.8;
% 0.9 0.13 0.9];
S1=90; % number of hidden layers
S2=3; % number of output layers (= number of classes)
can anyone explain me how here we have taken the values of image matrix(P,N) and why do we need to normalize it?
Best Answer