Changeset 16 for trunk/private
- Timestamp:
- 08/18/09 14:38:44 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/private/script_correc.m
r14 r16 12 12 % 13 13 % ++ 14 % 15 % ``script_correc`` plot ans save several figures : 14 16 % 17 % - script_correc_thetas.eps : 18 % 19 % - script_correc_thetav.eps : 20 % 21 % - script_correc_dphi.eps : 22 % 23 % - script_correc_rho_670_.eps : 24 % 25 % - script_correc_rho_765_.eps : 26 % 27 % - script_correc_rho_865_.eps : 28 % 29 % - script_correc_tau.eps : 30 % 31 % - script_correc_diagramme_dispersion.eps : 32 % 33 % - script_correc_histogramme_erreur.eps : 34 % 15 35 % EXAMPLES 16 36 % ======== … … 39 59 % improve description 40 60 % 41 % avoid overriding existing output file 61 % avoid overriding existing output files 42 62 % 43 63 % make it launchable from everywhere (path and IO directories) … … 45 65 % Running octave, ``more off`` is compulsary but I don't not yet why 46 66 % 47 % save output (sdout and figures) to make comparisons possible 67 % save output (sdout and stderr) to make comparisons possible 68 % 69 % If printer is set to png, one might see following warning using octave : 70 % .. 71 % 72 % gdImageStringFT: Could not find/open font while printing string ... with font Helvetica 73 % 74 % And no labels are visible on figure outputfiles. 75 % 76 % For now, find a portable solution (setting GDFONTPATH) is too tough, so 77 % printer is set to eps. 48 78 % 49 79 % EVOLUTIONS … … 51 81 % 52 82 % $Id$ 53 % 83 % 84 % - fplod 2009-08-18T09:55:12Z aedon.locean-ipsl.upmc.fr (Darwin) 85 % 86 % * save figures to make comparisons possible 87 % * replace error on suptitle using octave by a warning 88 % 54 89 % - fplod 2009-08-17T12:39:51Z aedon.locean-ipsl.upmc.fr (Darwin) 55 % 90 % 56 91 % * add header 57 92 % * add octave intersect_octave … … 106 141 107 142 %% QUESTION 3 : rien a faire 108 143 109 144 %% QUESTION 4 110 145 moy=mean(base_app); … … 148 183 suptitle(stitle{j}); 149 184 else 150 error('eee : octave can not write supertitle'); 151 end 185 warning('www : octave can not write supertitle'); 186 end 187 188 % save figure(j) 189 printer='eps'; 190 print_printer=['-d', printer]; 191 % figure name is based on stitle{j}. 192 % transformation is lower and replace ( and ) by _ 193 if (run_octave == 0) 194 figname=regexprep(lower(stitle{j}), '(', '_'); 195 else 196 figname=regexprep(lower(stitle{j}), '\(', '_'); 197 end 198 if (run_octave == 0) 199 figname=regexprep(figname, ')', '_'); 200 else 201 figname=regexprep(figname, '\)', '_'); 202 end 203 fullfilename=['./', mfilename, '_', figname , '.', printer]; 204 clear figname; 205 clear printer; 206 print(print_printer,fullfilename); 207 clear print_printer; 208 clear fullfilename; 152 209 153 210 end … … 173 230 [nets(n,i).W1 nets(n,i).W2]=MLPfit(base_val_n(:,1:end-1),base_val_n(:,end),base_app_n(:,1:end-1), ... 174 231 base_app_n(:,end),nets(n,i).W1,nets(n,i).W2,'tah','lin',[1500,1e-6],[100,1]); 175 176 232 233 177 234 %QUESTION 6 178 235 179 236 %Restitution du reseau 180 237 tau_nn=MLPval(base_val_n(:,1:end-1),nets(n,i).W1,nets(n,i).W2); 181 238 182 239 %Performance du reseau 183 240 delta=decenred(tau_nn,moy(end),et(end)) - decenred(base_val_n(:,end),moy(end),et(end)); 184 241 perf_opti=sqrt((1./length(delta))*sum(delta.^2)); 185 242 186 243 fprintf(1,'\nRMS finale : %3.2e\n',perf_opti); 187 244 … … 193 250 xlabel('TAU(vrai)') 194 251 ylabel('TAU(estime)'); 195 252 253 % save figure 254 printer='eps'; 255 print_printer=['-d', printer]; 256 fullfilename=['./', mfilename, '_diagramme_dispersion', '.', printer]; 257 clear printer; 258 print(print_printer,fullfilename); 259 clear print_printer; 260 clear fullfilename; 261 196 262 figure 197 263 hist(delta,50); 198 264 xlabel('TAU(estime)-TAU(vrai)'); 199 265 ylabel('Nombre'); 266 267 % save figure 268 printer='eps'; 269 print_printer=['-d', printer]; 270 fullfilename=['./', mfilename, '_histogramme_erreur', '.', printer]; 271 clear printer; 272 print(print_printer,fullfilename); 273 clear print_printer; 274 clear fullfilename;
Note: See TracChangeset
for help on using the changeset viewer.