visnet.m in pca_ann.rar


face recognition using pca and ann wih training and testing and validation priv...Original Link
    Sponsored links

			
function visnet(net,p_e_flag,imdmatrix)
%------------------------------------------------------------
% visnet(net,p_e_flag,imdmatrix)
%
% Just a NN's weights visualization function
% ->net = already trained network
% ->imdmatrix = a 1x2 vector which has the exact dimensions
% of images, used for weights' visualization.
%
% Algorithm:
% Standard matlab plotting stuff.
%
% ------------------/* Avraam Kasapis 2003 *\------------------
%Get & print final weights for all output neurons.
sizo=net.numLayers;
for i=1:sizo
matbias{i} = net.b{i}; %scale(min(net.b{i}(:)),max(net.b{i}(:)),0,255,net.b{i},0);
end
lmatwe = net.LW{2,1}; %scale(min(net.LW{2,1}(:)),max(net.LW{2,1}(:)),0,255,net.LW{2,1},0);
imatwe = net.IW{1,1}; %scale(min(net.IW{1,1}(:)),max(net.IW{1,1}(:)),0,255,net.IW{1,1},0);
%Future enhancement code
% scrsz = get(0,'ScreenSize');
% figure('Position',[1 scrsz(4)/2 scrsz(3)/2 scrsz(4)/2]);
handle_fig1 = figure('Positi			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 accuracy.m2.80 kB07-02-09 23:50
 enc.m3.05 kB07-02-09 23:49
 filevector.m1.27 kB06-02-09 13:29
 getdata.m2.24 kB06-02-09 16:37
 prepcaCOV.m1.48 kB07-02-09 23:48
 readpgm.m908.00 B10-02-09 10:39
 redata.m3.11 kB07-02-09 23:35
 scale.m654.00 B07-02-09 23:48
 scripto.m4.39 kB08-02-09 00:02
 visnet.m1.86 kB07-02-09 23:51
 writepgm.m797.00 B06-02-09 15:10
 <nn>0.00 B04-04-09 22:03
...

Related Items

    Sponsored links