Changeset 14


Ignore:
Timestamp:
08/17/09 17:22:18 (15 years ago)
Author:
pinsard
Message:

script_correc : add header and octave compatibility

Location:
trunk/private
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/private/script_app.m

    r3 r14  
    1212    [nets(n,i).W1 nets(n,i).W2]=MLPinit(base_app_n(:,1:end-1),base_app_n(:,end),archi(n)); 
    1313     
    14     %Apprentissage du rseau 
     14    %Apprentissage du reseau 
    1515    [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), ... 
    1616                                       base_app_n(:,end),nets(n,i).W1,nets(n,i).W2,'tah','lin',[1500,1e-6],[100,1]); 
  • trunk/private/script_correc.m

    r3 r14  
     1%SCRIPT_CORREC correction 
     2 
     3%+ 
     4% module 
     5% ====== 
     6% 
     7% correction du TP 
     8% 
     9% 
     10% DESCRIPTION 
     11% =========== 
     12% 
     13% ++ 
     14%  
     15% EXAMPLES 
     16% ======== 
     17% 
     18% :: 
     19% 
     20% >> addpath('../toolbox') 
     21% >> tp_mlp_aerosols_startup 
     22% >> more off 
     23% >> script_correc 
     24% 
     25% SEE ALSO 
     26% ======== 
     27% 
     28% tp_mlp_aerosols_startup.m_ 
     29% 
     30% .. _tp_mlp_aerosols_startup.m : tp_mlp_aerosols_startup.m.html 
     31% 
     32% intersect_octave.m_ 
     33% 
     34% .. _intersect_octave.m : intersect_octave.m.html 
     35% 
     36% TODO 
     37% ==== 
     38% 
     39% improve description 
     40% 
     41% avoid overriding existing output file 
     42% 
     43% make it launchable from everywhere (path and IO directories) 
     44% 
     45% Running octave, ``more off`` is compulsary but I don't not yet why 
     46% 
     47% save output (sdout and figures) to make comparisons possible 
     48% 
     49% EVOLUTIONS 
     50% ========== 
     51% 
     52% $Id$ 
     53%  
     54% - fplod 2009-08-17T12:39:51Z aedon.locean-ipsl.upmc.fr (Darwin) 
     55%  
     56%   * add header 
     57%   * add octave intersect_octave 
     58%   * add octave suptitle_octave 
     59% 
     60%- 
     61 
     62 
     63 
    164%Ajout du path 
    265addpath ('../toolbox'); 
     
    1679 
    1780%fusion 670nm avec 765nm 
    18 [parambase,I1,I2]=intersect(LUT_NIR(i670,[1:5]),LUT_NIR(i765,[1:5]),'rows'); 
     81if (run_octave == 0) 
     82 [parambase,I1,I2]=intersect(LUT_NIR(i670,[1:5]),LUT_NIR(i765,[1:5]),'rows'); 
     83else 
     84 [parambase,I1,I2]=intersect_octave(LUT_NIR(i670,[1:5]),LUT_NIR(i765,[1:5]),'rows'); 
     85end 
    1986base=[parambase LUT_NIR(i670(I1),7) LUT_NIR(i765(I2),7)]; 
    2087 
    2188%fusion de base avec 670nm avec base 
    22 [parambase,I1,I2]=intersect(base(:,[1:5]),LUT_NIR(i865,[1:5]),'rows'); 
     89if (run_octave == 0) 
     90 [parambase,I1,I2]=intersect(base(:,[1:5]),LUT_NIR(i865,[1:5]),'rows'); 
     91else 
     92 [parambase,I1,I2]=intersect_octave(base(:,[1:5]),LUT_NIR(i865,[1:5]),'rows'); 
     93end 
    2394 
    2495%base=[thetas,thetav,dphi,Rho_aer(670),Rho_aer(765),Rho_aer(865) tau] 
     
    74145title('Test norm'); 
    75146 
    76 suptitle(stitle{j}); 
     147if (run_octave == 0) 
     148 suptitle(stitle{j}); 
     149else 
     150 error('eee : octave can not write supertitle'); 
     151end 
    77152 
    78153end 
Note: See TracChangeset for help on using the changeset viewer.