Skip to content

Commit

Permalink
update v2
Browse files Browse the repository at this point in the history
  • Loading branch information
MarineFou committed Oct 30, 2020
1 parent 53b75f2 commit 7455863
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 81 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

v2/R/CANYON-MED_codes/.RData
v2/R/CANYON-MED_codes/.Rhistory
v1_paper/R/CANYON-MED_codes/.RData
v1_paper/R/CANYON-MED_codes/.Rhistory
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ Do not change the architecture inside the folder or rename any of the files.

------

The folder v2 contains a version still under development. This version is not stable and does not correspond to the version in the paper mentionned above.
The folder v2 contains a second version. The installation process is the same as for v1_paper.


The inputs have been modified (the day of year and year are now considered as a unique input : the decimal year). A retraining has been done on 2 separate subsets to diversify the learning process.
A sigmoid transfomraiton of the day of year is no longer used.
32 changes: 16 additions & 16 deletions v2/MATLAB/CANYON-MED_codes/CANYON_MED_AT_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
data=[lat(:) lon(:) dec_year(:) temp(:) psal(:) doxy(:) pres(:)./2e4+1./((1+exp(-pres(:)./300)).^3)];


moy_F=load(strcat(basedir,'NN_AT/weights_biases/moy_AT_F.txt'));
std_F=load(strcat(basedir,'NN_AT/weights_biases/std_AT_F.txt'));
moy_F=load(strcat(basedir,'CANYON-MED_weights/moy_AT_F.txt'));
std_F=load(strcat(basedir,'CANYON-MED_weights/std_AT_F.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -53,12 +53,12 @@
AT_outputs_s=zeros(size(data_norm,1),n_list);
% AT_out_test_s=zeros(size(data_norm,1),n_list);
for i=1:n_list
b1=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_LW2_F_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_AT_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_AT_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_AT_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_AT_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_AT_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_AT_LW2_F_',string(i),'.txt'));

AT_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
AT_outputs=1.5*AT_outputs*std_F(ne+1)+moy_F(ne+1);
Expand All @@ -67,8 +67,8 @@
end
clear b1 b2 b3 IW LWI LW2

moy_G=load(strcat(basedir,'NN_AT/weights_biases/moy_AT_G.txt'));
std_G=load(strcat(basedir,'NN_AT/weights_biases/std_AT_G.txt'));
moy_G=load(strcat(basedir,'CANYON-MED_weights/moy_AT_G.txt'));
std_G=load(strcat(basedir,'CANYON-MED_weights/std_AT_G.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -77,12 +77,12 @@


for i=1:n_list
b1=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_AT\weights_biases\poids_AT_LW2_G_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_AT_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_AT_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_AT_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_AT_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_AT_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_AT_LW2_G_',string(i),'.txt'));

AT_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
AT_outputs=1.5*AT_outputs*std_G(ne+1)+moy_G(ne+1);
Expand Down
32 changes: 16 additions & 16 deletions v2/MATLAB/CANYON-MED_codes/CANYON_MED_CT_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
data=[lat(:) lon(:) dec_year(:) temp(:) psal(:) doxy(:) pres(:)./2e4+1./((1+exp(-pres(:)./300)).^3)];


moy_F=load(strcat(basedir,'NN_CT/weights_biases/moy_CT_F.txt'));
std_F=load(strcat(basedir,'NN_CT/weights_biases/std_CT_F.txt'));
moy_F=load(strcat(basedir,'CANYON-MED_weights/moy_CT_F.txt'));
std_F=load(strcat(basedir,'CANYON-MED_weights/std_CT_F.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -53,12 +53,12 @@
CT_outputs_s=zeros(size(data_norm,1),n_list);
% CT_out_test_s=zeros(size(data_norm,1),n_list);
for i=1:n_list
b1=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_LW2_F_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_CT_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_CT_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_CT_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_CT_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_CT_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_CT_LW2_F_',string(i),'.txt'));

CT_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
CT_outputs=1.5*CT_outputs*std_F(ne+1)+moy_F(ne+1);
Expand All @@ -67,8 +67,8 @@
end
clear b1 b2 b3 IW LWI LW2

moy_G=load(strcat(basedir,'NN_CT/weights_biases/moy_CT_G.txt'));
std_G=load(strcat(basedir,'NN_CT/weights_biases/std_CT_G.txt'));
moy_G=load(strcat(basedir,'CANYON-MED_weights/moy_CT_G.txt'));
std_G=load(strcat(basedir,'CANYON-MED_weights/std_CT_G.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -77,12 +77,12 @@


for i=1:n_list
b1=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_CT\weights_biases\poids_CT_LW2_G_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_CT_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_CT_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_CT_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_CT_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_CT_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_CT_LW2_G_',string(i),'.txt'));

CT_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
CT_outputs=1.5*CT_outputs*std_G(ne+1)+moy_G(ne+1);
Expand Down
32 changes: 16 additions & 16 deletions v2/MATLAB/CANYON-MED_codes/CANYON_MED_PO4_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
data=[lat(:) lon(:) dec_year(:) temp(:) psal(:) doxy(:) pres(:)./2e4+1./((1+exp(-pres(:)./300)).^3)];


moy_F=load(strcat(basedir,'NN_PO4/weights_biases/moy_phos_F.txt'));
std_F=load(strcat(basedir,'NN_PO4/weights_biases/std_phos_F.txt'));
moy_F=load(strcat(basedir,'CANYON-MED_weights/moy_phos_F.txt'));
std_F=load(strcat(basedir,'CANYON-MED_weights/std_phos_F.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -53,12 +53,12 @@
phos_outputs_s=zeros(size(data_norm,1),n_list);
% phos_out_test_s=zeros(size(data_norm,1),n_list);
for i=1:n_list
b1=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_LW2_F_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_phos_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_phos_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_phos_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_phos_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_phos_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_phos_LW2_F_',string(i),'.txt'));

phos_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
phos_outputs=1.5*phos_outputs*std_F(ne+1)+moy_F(ne+1);
Expand All @@ -67,8 +67,8 @@
end
clear b1 b2 b3 IW LWI LW2

moy_G=load(strcat(basedir,'NN_PO4/weights_biases/moy_phos_G.txt'));
std_G=load(strcat(basedir,'NN_PO4/weights_biases/std_phos_G.txt'));
moy_G=load(strcat(basedir,'CANYON-MED_weights/moy_phos_G.txt'));
std_G=load(strcat(basedir,'CANYON-MED_weights/std_phos_G.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -77,12 +77,12 @@


for i=1:n_list
b1=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_PO4\weights_biases\poids_phos_LW2_G_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_phos_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_phos_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_phos_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_phos_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_phos_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_phos_LW2_G_',string(i),'.txt'));

phos_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
phos_outputs=1.5*phos_outputs*std_G(ne+1)+moy_G(ne+1);
Expand Down
32 changes: 16 additions & 16 deletions v2/MATLAB/CANYON-MED_codes/CANYON_MED_SiOH4_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
data=[lat(:) lon(:) dec_year(:) temp(:) psal(:) doxy(:) pres(:)./2e4+1./((1+exp(-pres(:)./300)).^3)];


moy_F=load(strcat(basedir,'NN_SiOH4/weights_biases/moy_sil_F.txt'));
std_F=load(strcat(basedir,'NN_SiOH4/weights_biases/std_sil_F.txt'));
moy_F=load(strcat(basedir,'CANYON-MED_weights/moy_sil_F.txt'));
std_F=load(strcat(basedir,'CANYON-MED_weights/std_sil_F.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -53,12 +53,12 @@
sil_outputs_s=zeros(size(data_norm,1),n_list);
% sil_out_test_s=zeros(size(data_norm,1),n_list);
for i=1:n_list
b1=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_LW2_F_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_sil_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_sil_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_sil_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_sil_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_sil_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_sil_LW2_F_',string(i),'.txt'));

sil_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
sil_outputs=1.5*sil_outputs*std_F(ne+1)+moy_F(ne+1);
Expand All @@ -67,8 +67,8 @@
end
clear b1 b2 b3 IW LWI LW2

moy_G=load(strcat(basedir,'NN_SiOH4/weights_biases/moy_sil_G.txt'));
std_G=load(strcat(basedir,'NN_SiOH4/weights_biases/std_sil_G.txt'));
moy_G=load(strcat(basedir,'CANYON-MED_weights/moy_sil_G.txt'));
std_G=load(strcat(basedir,'CANYON-MED_weights/std_sil_G.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -77,12 +77,12 @@


for i=1:n_list
b1=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_SiOH4\weights_biases\poids_sil_LW2_G_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_sil_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_sil_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_sil_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_sil_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_sil_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_sil_LW2_G_',string(i),'.txt'));

sil_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
sil_outputs=1.5*sil_outputs*std_G(ne+1)+moy_G(ne+1);
Expand Down
32 changes: 16 additions & 16 deletions v2/MATLAB/CANYON-MED_codes/CANYON_MED_pHT_v4.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
data=[lat(:) lon(:) dec_year(:) temp(:) psal(:) doxy(:) pres(:)./2e4+1./((1+exp(-pres(:)./300)).^3)];


moy_F=load(strcat(basedir,'NN_pHT/weights_biases/moy_ph_F.txt'));
std_F=load(strcat(basedir,'NN_pHT/weights_biases/std_ph_F.txt'));
moy_F=load(strcat(basedir,'CANYON-MED_weights/moy_ph_F.txt'));
std_F=load(strcat(basedir,'CANYON-MED_weights/std_ph_F.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -52,12 +52,12 @@
ph_outputs_s=zeros(size(data_norm,1),n_list);
% ph_out_test_s=zeros(size(data_norm,1),n_list);
for i=1:n_list
b1=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_LW2_F_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_ph_b1_F_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_ph_b2_F_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_ph_b3_F_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_ph_IW_F_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_ph_LW1_F_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_ph_LW2_F_',string(i),'.txt'));

ph_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
ph_outputs=1.5*ph_outputs*std_F(ne+1)+moy_F(ne+1);
Expand All @@ -66,8 +66,8 @@
end
clear b1 b2 b3 IW LWI LW2

moy_G=load(strcat(basedir,'NN_pHT/weights_biases/moy_ph_G.txt'));
std_G=load(strcat(basedir,'NN_pHT/weights_biases/std_ph_G.txt'));
moy_G=load(strcat(basedir,'CANYON-MED_weights/moy_ph_G.txt'));
std_G=load(strcat(basedir,'CANYON-MED_weights/std_ph_G.txt'));

ne=7; % Number of inputs
% NORMALISATION OF THE PARAMETERS
Expand All @@ -76,12 +76,12 @@


for i=1:n_list
b1=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'NN_pHT\weights_biases\poids_ph_LW2_G_',string(i),'.txt'));
b1=load(strcat(basedir,'CANYON-MED_weights/poids_ph_b1_G_',string(i),'.txt'));
b2=load(strcat(basedir,'CANYON-MED_weights/poids_ph_b2_G_',string(i),'.txt'));
b3=load(strcat(basedir,'CANYON-MED_weights/poids_ph_b3_G_',string(i),'.txt'));
IW=load(strcat(basedir,'CANYON-MED_weights/poids_ph_IW_G_',string(i),'.txt'));
LW1=load(strcat(basedir,'CANYON-MED_weights/poids_ph_LW1_G_',string(i),'.txt'));
LW2=load(strcat(basedir,'CANYON-MED_weights/poids_ph_LW2_G_',string(i),'.txt'));

ph_outputs=(LW2*custom_MF(LW1*custom_MF(IW*data_norm(:,1:end)'+b1)+b2)+b3)';
ph_outputs=1.5*ph_outputs*std_G(ne+1)+moy_G(ne+1);
Expand Down

0 comments on commit 7455863

Please sign in to comment.