pred practical uses incoming
|
@ -1,29 +1,29 @@
|
|||
;DHPAA.GG_urine_post_pred;DHPAA.GG_urine_post_test
|
||||
135;0.028153156055213128;0.02306918427348137
|
||||
66;0.018361467996007543;0.02124183
|
||||
31;0.01845511186209114;0.011437908
|
||||
118;0.050374303744972336;0.049019608
|
||||
42;0.036810230067259544;0.02283056080341339
|
||||
12;0.05219072017192368;0.06341682374477386
|
||||
51;0.06314230449378826;0.081699346
|
||||
68;0.032156267227236364;0.013071895
|
||||
126;0.028153156055213128;0.03025123104453087
|
||||
55;0.017200176868291738;0.022875817
|
||||
112;0.028287330195368495;0.038646358996629715
|
||||
130;0.06512786516866897;0.058823529
|
||||
80;0.036769699793187775;0.02044045552611351
|
||||
19;0.0646236779087797;0.091503268
|
||||
86;0.06512786516866897;0.088235294
|
||||
69;0.03409086651673512;0.016339869
|
||||
11;0.031212544361196616;0.041303522884845734
|
||||
27;0.036461300354839396;0.032679739
|
||||
134;0.036810230067259544;0.031945351511240005
|
||||
109;0.036038730903312076;0.050144873559474945
|
||||
36;0.05406548222590799;0.021195339038968086
|
||||
117;0.018320937721935774;0.011437908
|
||||
78;0.04159588633530323;0.032308947294950485
|
||||
4;0.027259469129501897;0.006535948
|
||||
73;0.018320937721935774;0.019607843
|
||||
26;0.06757869907213537;0.109477124
|
||||
132;0.018320937721935774;0.004901961
|
||||
60;0.03125307463526839;0.05469038337469101
|
||||
135;0.03665609173404821;0.02306918427348137
|
||||
66;0.02489133679527135;0.02124183
|
||||
31;0.024208558825179707;0.011437908
|
||||
118;0.05032729729877841;0.049019608
|
||||
42;0.03822388806769223;0.02283056080341339
|
||||
12;0.043304848916950814;0.06341682374477386
|
||||
51;0.06386605414394533;0.081699346
|
||||
68;0.028796198048495824;0.013071895
|
||||
126;0.03665609173404821;0.03025123104453087
|
||||
55;0.022451306147386555;0.022875817
|
||||
112;0.03665609173404821;0.038646358996629715
|
||||
130;0.05946787126477838;0.058823529
|
||||
80;0.03822388806769223;0.02044045552611351
|
||||
19;0.06653026313364212;0.091503268
|
||||
86;0.05946787126477838;0.088235294
|
||||
69;0.03127095069404356;0.016339869
|
||||
11;0.036466635389899096;0.041303522884845734
|
||||
27;0.03226087550142653;0.032679739
|
||||
134;0.03822388806769223;0.031945351511240005
|
||||
109;0.037149413359990724;0.050144873559474945
|
||||
36;0.04506210159474395;0.021195339038968086
|
||||
117;0.024208558825179707;0.011437908
|
||||
78;0.03890666603778386;0.032308947294950485
|
||||
4;0.027721723340794317;0.006535948
|
||||
73;0.024208558825179707;0.019607843
|
||||
26;0.0656233068217385;0.109477124
|
||||
132;0.02264076249153568;0.004901961
|
||||
60;0.036466635389899096;0.05469038337469101
|
||||
|
|
|
|
@ -1,29 +1,29 @@
|
|||
;VA.S_post_pred;VA.S_post_test
|
||||
135;0.3856540425219162;0.39814651012420654
|
||||
66;0.1820317685516569;0.179540709812109
|
||||
31;0.09500056013237226;0.103340292275574
|
||||
118;0.4109125647914376;0.536534446764092
|
||||
42;0.3856540425219162;0.39814651012420654
|
||||
12;0.18261806302989889;0.177800974251914
|
||||
51;0.10268324709709578;0.0723729993041058
|
||||
68;0.1796872094731296;0.17571329157968
|
||||
126;0.4477433077604814;1.0
|
||||
55;0.14072484000067353;0.159011830201809
|
||||
112;0.29733352042822303;0.283228949199722
|
||||
130;0.15674750982777283;0.0949895615866388
|
||||
80;0.28089946791987636;0.251913709116214
|
||||
19;0.30881229269932087;0.282533054975644
|
||||
86;0.26250097642533193;0.14294157922267914
|
||||
69;0.2070460948787779;0.211899791231733
|
||||
11;0.17120079373894959;0.178844815588031
|
||||
27;0.1924398089521744;0.17223382045929
|
||||
134;0.3856540425219162;0.39814651012420654
|
||||
109;0.24717340450649433;0.224425887265136
|
||||
36;0.3498188867479469;0.331593597773139
|
||||
117;0.15631651482067102;0.156576200417537
|
||||
78;0.40182931980868064;0.616910229645094
|
||||
4;0.3112146833258589;0.279053583855254
|
||||
73;0.142318495823758;0.157620041753653
|
||||
26;0.19001386932573935;0.203201113430759
|
||||
132;0.3723563099639571;0.26920539140701294
|
||||
60;0.3845162666647124;0.532707028531663
|
||||
135;0.385500448636552;0.39814651012420654
|
||||
66;0.18361857228389147;0.179540709812109
|
||||
31;0.0961196859691149;0.103340292275574
|
||||
118;0.4110692465600275;0.536534446764092
|
||||
42;0.385500448636552;0.39814651012420654
|
||||
12;0.1839108952936488;0.177800974251914
|
||||
51;0.10331121889546636;0.0723729993041058
|
||||
68;0.1785363434895466;0.17571329157968
|
||||
126;0.4484969563195786;1.0
|
||||
55;0.1415834968056925;0.159011830201809
|
||||
112;0.29850332568702925;0.283228949199722
|
||||
130;0.1582858815274922;0.0949895615866388
|
||||
80;0.2805258389632739;0.251913709116214
|
||||
19;0.30866283622042606;0.282533054975644
|
||||
86;0.2612552887481758;0.14294157922267914
|
||||
69;0.20566068781178762;0.211899791231733
|
||||
11;0.1717199680091557;0.178844815588031
|
||||
27;0.19370089209618901;0.17223382045929
|
||||
134;0.385500448636552;0.39814651012420654
|
||||
109;0.24845779962939202;0.224425887265136
|
||||
36;0.351258707727789;0.331593597773139
|
||||
117;0.1561848599542454;0.156576200417537
|
||||
78;0.40183375038248215;0.616910229645094
|
||||
4;0.3113394389917802;0.279053583855254
|
||||
73;0.1420770914748939;0.157620041753653
|
||||
26;0.19105278111285454;0.203201113430759
|
||||
132;0.37261682999483037;0.26920539140701294
|
||||
60;0.3833830518702266;0.532707028531663
|
||||
|
|
|
|
@ -1,29 +1,29 @@
|
|||
;DHPAA.GG_urine_post_pred;DHPAA.GG_urine_post_test
|
||||
135;0.031273110190910364;0.02306918427348137
|
||||
66;0.03145485430803648;0.02124183
|
||||
31;0.01765842710094761;0.011437908
|
||||
118;0.04195940158403984;0.049019608
|
||||
42;0.03142314200243451;0.02283056080341339
|
||||
12;0.0377685457829103;0.06341682374477386
|
||||
51;0.07098040480298232;0.081699346
|
||||
68;0.020870417506442494;0.013071895
|
||||
126;0.03283576057480141;0.03025123104453087
|
||||
55;0.022325100615161547;0.022875817
|
||||
112;0.03705067103943467;0.038646358996629715
|
||||
130;0.04507897043507233;0.058823529
|
||||
80;0.029334536335621445;0.02044045552611351
|
||||
19;0.07895820794032689;0.091503268
|
||||
86;0.07592136790440752;0.088235294
|
||||
69;0.05038106270314998;0.016339869
|
||||
11;0.0364069806867011;0.041303522884845734
|
||||
27;0.042261517999367705;0.032679739
|
||||
134;0.04181352141882766;0.031945351511240005
|
||||
109;0.029714568217147713;0.050144873559474945
|
||||
36;0.03668268442589102;0.021195339038968086
|
||||
117;0.024357621131988083;0.011437908
|
||||
78;0.04948888001872687;0.032308947294950485
|
||||
4;0.02368186276767989;0.006535948
|
||||
73;0.018124506751902702;0.019607843
|
||||
26;0.08721752947338282;0.109477124
|
||||
132;0.014476640958512664;0.004901961
|
||||
60;0.027154709682683038;0.05469038337469101
|
||||
135;0.037553188293868445;0.02306918427348137
|
||||
66;0.040778807790800814;0.02124183
|
||||
31;0.038155788698642584;0.011437908
|
||||
118;0.04245305023138848;0.049019608
|
||||
42;0.03906940211722372;0.02283056080341339
|
||||
12;0.04060928915499565;0.06341682374477386
|
||||
51;0.04610165401111834;0.081699346
|
||||
68;0.038478463360670866;0.013071895
|
||||
126;0.038164470578119;0.03025123104453087
|
||||
55;0.03675932961797219;0.022875817
|
||||
112;0.03870953243588764;0.038646358996629715
|
||||
130;0.04621513620995086;0.058823529
|
||||
80;0.038176350013032594;0.02044045552611351
|
||||
19;0.04807546352057312;0.091503268
|
||||
86;0.0461577077052454;0.088235294
|
||||
69;0.04477047582836725;0.016339869
|
||||
11;0.03886134286902194;0.041303522884845734
|
||||
27;0.041649221287857884;0.032679739
|
||||
134;0.03924745230471296;0.031945351511240005
|
||||
109;0.039236028226304495;0.050144873559474945
|
||||
36;0.04044142278036775;0.021195339038968086
|
||||
117;0.03953446151854473;0.011437908
|
||||
78;0.04120798002719795;0.032308947294950485
|
||||
4;0.03985030827936556;0.006535948
|
||||
73;0.037386597999999924;0.019607843
|
||||
26;0.046893613177505025;0.109477124
|
||||
132;0.037103359895445186;0.004901961
|
||||
60;0.03765075006523226;0.05469038337469101
|
||||
|
|
|
|
@ -1,29 +1,29 @@
|
|||
;VA.S_post_pred;VA.S_post_test
|
||||
135;0.3777733238510637;0.39814651012420654
|
||||
66;0.2295859566079087;0.179540709812109
|
||||
31;0.17085845085143272;0.103340292275574
|
||||
118;0.47819910002193927;0.536534446764092
|
||||
42;0.3920482403870007;0.39814651012420654
|
||||
12;0.18721629507048224;0.177800974251914
|
||||
51;0.14784595676779108;0.0723729993041058
|
||||
68;0.20366391781796678;0.17571329157968
|
||||
126;0.4627053571344643;1.0
|
||||
55;0.15880194207735832;0.159011830201809
|
||||
112;0.2782131437541021;0.283228949199722
|
||||
130;0.30317636237545054;0.0949895615866388
|
||||
80;0.289299486043098;0.251913709116214
|
||||
19;0.2407923468256168;0.282533054975644
|
||||
86;0.23815393602134982;0.14294157922267914
|
||||
69;0.2014224425325397;0.211899791231733
|
||||
11;0.21277665207793675;0.178844815588031
|
||||
27;0.2029479530718343;0.17223382045929
|
||||
134;0.3777733238510637;0.39814651012420654
|
||||
109;0.3156291944544935;0.224425887265136
|
||||
36;0.30806962701332347;0.331593597773139
|
||||
117;0.20823083572217962;0.156576200417537
|
||||
78;0.3983591457155721;0.616910229645094
|
||||
4;0.24678185142233666;0.279053583855254
|
||||
73;0.19202459194875676;0.157620041753653
|
||||
26;0.2262721234028612;0.203201113430759
|
||||
132;0.31789609961575716;0.26920539140701294
|
||||
60;0.39152947533099897;0.532707028531663
|
||||
135;0.3946924219288389;0.39814651012420654
|
||||
66;0.221443003592149;0.179540709812109
|
||||
31;0.16109214936714855;0.103340292275574
|
||||
118;0.4927798599742769;0.536534446764092
|
||||
42;0.3965474831304857;0.39814651012420654
|
||||
12;0.18850407230696486;0.177800974251914
|
||||
51;0.14791923525540013;0.0723729993041058
|
||||
68;0.20022588191444948;0.17571329157968
|
||||
126;0.5052335994941991;1.0
|
||||
55;0.1625567019610433;0.159011830201809
|
||||
112;0.2768080142721624;0.283228949199722
|
||||
130;0.2799027771551335;0.0949895615866388
|
||||
80;0.2943017372558495;0.251913709116214
|
||||
19;0.25413374880963197;0.282533054975644
|
||||
86;0.2502207364065027;0.14294157922267914
|
||||
69;0.2095131079720009;0.211899791231733
|
||||
11;0.21397126468016567;0.178844815588031
|
||||
27;0.21919140640445686;0.17223382045929
|
||||
134;0.3946924219288389;0.39814651012420654
|
||||
109;0.3191924566461595;0.224425887265136
|
||||
36;0.29763081410261455;0.331593597773139
|
||||
117;0.198058935595224;0.156576200417537
|
||||
78;0.41856986393365647;0.616910229645094
|
||||
4;0.23654145653427608;0.279053583855254
|
||||
73;0.18882562581149895;0.157620041753653
|
||||
26;0.21854601699700113;0.203201113430759
|
||||
132;0.3208090401514642;0.26920539140701294
|
||||
60;0.4207355338489917;0.532707028531663
|
||||
|
|
|
|
@ -1,29 +1,29 @@
|
|||
;DHPAA.GG_urine_post_pred;DHPAA.GG_urine_post_test
|
||||
135;0.031462133;0.02306918427348137
|
||||
66;0.02905063;0.02124183
|
||||
31;0.017424105;0.011437908
|
||||
118;0.04723146;0.049019608
|
||||
42;0.027945299;0.02283056080341339
|
||||
12;0.041838914;0.06341682374477386
|
||||
51;0.07040258;0.081699346
|
||||
68;0.029148411;0.013071895
|
||||
126;0.034234293;0.03025123104453087
|
||||
55;0.020864855;0.022875817
|
||||
112;0.04168502;0.038646358996629715
|
||||
130;0.04384079;0.058823529
|
||||
80;0.025912791;0.02044045552611351
|
||||
19;0.07090839;0.091503268
|
||||
86;0.07661374;0.088235294
|
||||
69;0.043188192;0.016339869
|
||||
11;0.021142017;0.041303522884845734
|
||||
27;0.049644094;0.032679739
|
||||
134;0.043581855;0.031945351511240005
|
||||
109;0.02959964;0.050144873559474945
|
||||
36;0.042403404;0.021195339038968086
|
||||
117;0.020200256;0.011437908
|
||||
78;0.04311989;0.032308947294950485
|
||||
4;0.028928952;0.006535948
|
||||
73;0.015874023;0.019607843
|
||||
26;0.08626201;0.109477124
|
||||
132;0.013017364;0.004901961
|
||||
60;0.020769069;0.05469038337469101
|
||||
135;0.027389245;0.02306918427348137
|
||||
66;0.02513856;0.02124183
|
||||
31;0.01768276;0.011437908
|
||||
118;0.04655544;0.049019608
|
||||
42;0.02635246;0.02283056080341339
|
||||
12;0.03986755;0.06341682374477386
|
||||
51;0.06773295;0.081699346
|
||||
68;0.02751248;0.013071895
|
||||
126;0.03271338;0.03025123104453087
|
||||
55;0.020317791;0.022875817
|
||||
112;0.041316237;0.038646358996629715
|
||||
130;0.041092914;0.058823529
|
||||
80;0.026260871;0.02044045552611351
|
||||
19;0.07303434;0.091503268
|
||||
86;0.07757345;0.088235294
|
||||
69;0.043977354;0.016339869
|
||||
11;0.023169218;0.041303522884845734
|
||||
27;0.047907326;0.032679739
|
||||
134;0.045868084;0.031945351511240005
|
||||
109;0.028912274;0.050144873559474945
|
||||
36;0.046101093;0.021195339038968086
|
||||
117;0.019773476;0.011437908
|
||||
78;0.04709622;0.032308947294950485
|
||||
4;0.025903573;0.006535948
|
||||
73;0.016646996;0.019607843
|
||||
26;0.09017229;0.109477124
|
||||
132;0.008872973;0.004901961
|
||||
60;0.017915584;0.05469038337469101
|
||||
|
|
|
|
@ -1,29 +1,29 @@
|
|||
;VA.S_post_pred;VA.S_post_test
|
||||
135;0.39736453;0.39814651012420654
|
||||
66;0.17058298;0.179540709812109
|
||||
31;0.08955078;0.103340292275574
|
||||
118;0.48255712;0.536534446764092
|
||||
42;0.3974191;0.39814651012420654
|
||||
12;0.17535107;0.177800974251914
|
||||
51;0.082894;0.0723729993041058
|
||||
68;0.21463375;0.17571329157968
|
||||
126;0.5112201;1.0
|
||||
55;0.15372284;0.159011830201809
|
||||
112;0.26576737;0.283228949199722
|
||||
130;0.12122539;0.0949895615866388
|
||||
80;0.23488523;0.251913709116214
|
||||
19;0.28017506;0.282533054975644
|
||||
86;0.18157113;0.14294157922267914
|
||||
69;0.2018286;0.211899791231733
|
||||
11;0.17589235;0.178844815588031
|
||||
27;0.1840144;0.17223382045929
|
||||
134;0.39736453;0.39814651012420654
|
||||
109;0.2519063;0.224425887265136
|
||||
36;0.31645885;0.331593597773139
|
||||
117;0.16063862;0.156576200417537
|
||||
78;0.5179117;0.616910229645094
|
||||
4;0.21262856;0.279053583855254
|
||||
73;0.15488961;0.157620041753653
|
||||
26;0.22001734;0.203201113430759
|
||||
132;0.24209619;0.26920539140701294
|
||||
60;0.65157264;0.532707028531663
|
||||
135;0.39767593;0.39814651012420654
|
||||
66;0.17780803;0.179540709812109
|
||||
31;0.08723728;0.103340292275574
|
||||
118;0.48351088;0.536534446764092
|
||||
42;0.3977155;0.39814651012420654
|
||||
12;0.17717981;0.177800974251914
|
||||
51;0.08128439;0.0723729993041058
|
||||
68;0.20843603;0.17571329157968
|
||||
126;0.5020346;1.0
|
||||
55;0.1564021;0.159011830201809
|
||||
112;0.27660555;0.283228949199722
|
||||
130;0.10848338;0.0949895615866388
|
||||
80;0.24401306;0.251913709116214
|
||||
19;0.28145182;0.282533054975644
|
||||
86;0.18691841;0.14294157922267914
|
||||
69;0.20575415;0.211899791231733
|
||||
11;0.17768946;0.178844815588031
|
||||
27;0.17685115;0.17223382045929
|
||||
134;0.39767593;0.39814651012420654
|
||||
109;0.24084073;0.224425887265136
|
||||
36;0.31303984;0.331593597773139
|
||||
117;0.16038324;0.156576200417537
|
||||
78;0.5008291;0.616910229645094
|
||||
4;0.20912644;0.279053583855254
|
||||
73;0.15673827;0.157620041753653
|
||||
26;0.22065607;0.203201113430759
|
||||
132;0.23289388;0.26920539140701294
|
||||
60;0.6711741;0.532707028531663
|
||||
|
|
|
|
@ -1,8 +1,8 @@
|
|||
index;Value
|
||||
target;DHPAA.GG_urine_post
|
||||
method;lgbm_DHPAA.GG_urine_post
|
||||
r2;0.6321800511692435
|
||||
mae;0.01322630609274777
|
||||
mse;0.0002716411701154974
|
||||
mape;0.5937794803254899
|
||||
ev;0.6324661040098283
|
||||
r2;0.6298818349091119
|
||||
mae;0.013202296856319634
|
||||
mse;0.00027333844117451725
|
||||
mape;0.6376060162626062
|
||||
ev;0.6306294758357183
|
||||
|
|
|
|
@ -1,8 +1,8 @@
|
|||
index;Value
|
||||
target;DHPAA.GG_urine_post
|
||||
method;rf_DHPAA.GG_urine_post
|
||||
r2;0.7153104415478325
|
||||
mae;0.01211031209267511
|
||||
mse;0.00021024798960317991
|
||||
mape;0.5389835080915979
|
||||
ev;0.7158407698133342
|
||||
r2;0.1582359952770762
|
||||
mae;0.02079565013325713
|
||||
mse;0.0006216567642155086
|
||||
mape;1.0709657592804676
|
||||
ev;0.16673732869228586
|
||||
|
|
|
|
@ -1,8 +1,8 @@
|
|||
index;Value
|
||||
target;DHPAA.GG_urine_post
|
||||
method;xgb_DHPAA.GG_urine_post
|
||||
r2;0.672220639822841
|
||||
mae;0.01314507662885431
|
||||
mse;0.0002420705272274436
|
||||
mape;0.5725399904527851
|
||||
ev;0.6722345480353836
|
||||
r2;0.6675471221887801
|
||||
mae;0.01283350851554431
|
||||
mse;0.00024552199798836156
|
||||
mape;0.5189156701463661
|
||||
ev;0.6680045970593769
|
||||
|
|
|
|
@ -1,8 +1,8 @@
|
|||
index;Value
|
||||
target;VA.S_post
|
||||
method;lgbm_VA.S_post
|
||||
r2;0.5942984537720181
|
||||
mae;0.05840252157288433
|
||||
mse;0.01514590421303627
|
||||
mape;0.17611546600375563
|
||||
ev;0.6090790308599667
|
||||
r2;0.5946794090988993
|
||||
mae;0.05863711277761579
|
||||
mse;0.015131682150182344
|
||||
mape;0.17731311116070936
|
||||
ev;0.6090686803238197
|
||||
|
|
|
|
@ -1,8 +1,8 @@
|
|||
index;Value
|
||||
target;VA.S_post
|
||||
method;rf_VA.S_post
|
||||
r2;0.5707264348940158
|
||||
mae;0.07143929096472698
|
||||
mse;0.01602590958485085
|
||||
mape;0.30699726553302753
|
||||
ev;0.5725430320175894
|
||||
r2;0.6369866753160623
|
||||
mae;0.06557323965169486
|
||||
mse;0.013552240790891856
|
||||
mape;0.2879839093526525
|
||||
ev;0.6373705153563713
|
||||
|
|
|
|
@ -1,8 +1,8 @@
|
|||
index;Value
|
||||
target;VA.S_post
|
||||
method;xgb_VA.S_post
|
||||
r2;0.734865384893162
|
||||
mae;0.040325589676149964
|
||||
mse;0.009898171503915842
|
||||
mape;0.1080470427189779
|
||||
ev;0.7449203977422081
|
||||
r2;0.7184813914642618
|
||||
mae;0.03992697589754178
|
||||
mse;0.010509829007832996
|
||||
mape;0.09800024705606505
|
||||
ev;0.7291279997059905
|
||||
|
|
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 38 KiB |
|
@ -0,0 +1,29 @@
|
|||
;N.G_urine_post_pred;N.G_urine_post_test
|
||||
135;0.06316971751810099;0.0529247320444273
|
||||
66;0.013792022506882586;0.0108796802732645
|
||||
31;0.05523039205689354;0.0515449616724398
|
||||
118;0.20818952109297018;0.188107995633296
|
||||
42;0.043906763224113146;0.0506626188659772
|
||||
12;0.014415268226797565;0.0113548568210471
|
||||
51;0.09103335302521662;0.0951333511997158
|
||||
68;0.20085444534853159;0.171557659924219
|
||||
126;0.14368360286909895;0.119485276352258
|
||||
55;0.07446719153475265;0.0667875239596586
|
||||
112;0.16063613226758033;0.123815203264847
|
||||
130;0.17160305297963588;0.154488505725275
|
||||
80;0.011198247208830935;0.0076095576685619
|
||||
19;0.19994384668421197;0.272844194500416
|
||||
86;0.054716474913225885;0.055175352947481
|
||||
69;0.019530519656531336;0.0217994520873827
|
||||
11;0.04940790670686008;0.0429014736388349
|
||||
27;0.04315215126119766;0.0376318042074121
|
||||
134;0.05122849849068828;0.0413891896435029
|
||||
109;0.16684896474655822;0.125418620172573
|
||||
36;0.011198247208830935;0.0099228939919132
|
||||
117;0.05791686369224038;0.0513273823920579
|
||||
78;0.04045707239876587;0.043477623740852
|
||||
4;0.08311468581966737;0.013261781074106693
|
||||
73;0.07128237673643059;0.0794711130589172
|
||||
26;0.018897099172063638;0.0265467369144264
|
||||
132;0.07957046664213537;0.0735684560429879
|
||||
60;0.14378265080792801;0.16638741325803
|
|
|
@ -0,0 +1,29 @@
|
|||
;VA.GG_plasm_post_pred;VA.GG_plasm_post_test
|
||||
135;0.3675569775176365;0.22367295622825623
|
||||
66;0.20880638506151786;0.206263498920086
|
||||
31;0.09626388622126326;0.0706361672884351
|
||||
118;0.22667863192002272;0.178283919104653
|
||||
42;0.30650084142689904;0.22367295622825623
|
||||
12;0.1468069830679748;0.137885332809739
|
||||
51;0.16031137508495322;0.148439033968192
|
||||
68;0.12578172033130475;0.125073630473198
|
||||
126;0.18407547793414508;0.121735715688199
|
||||
55;0.17967446564480133;0.170724523856273
|
||||
112;0.3291373134463038;0.26595326919301
|
||||
130;0.34132683341924486;0.277243275083448
|
||||
80;0.1298236642992269;0.121833889652464
|
||||
19;0.4161805409094215;0.80458472413116
|
||||
86;0.42555622870271104;0.418613783624583
|
||||
69;0.228488130794637;0.255890437855881
|
||||
11;0.1519497055221712;0.13665815825643
|
||||
27;0.28996262724504;0.26678774788926
|
||||
134;0.3675569775176365;0.22367295622825623
|
||||
109;0.256291841915976;0.224082073434125
|
||||
36;0.18656438325085603;0.18304535637149
|
||||
117;0.25827159032062225;0.248281955625368
|
||||
78;0.11524148511966276;0.105684272530925
|
||||
4;0.096810669781396;0.0595915963086589
|
||||
73;0.21249922016033107;0.21367563322207
|
||||
26;0.10607383209288813;0.0626349892008639
|
||||
132;0.4538231229772207;0.363390928725702
|
||||
60;0.10479210404670126;0.0780973885725506
|
|
|
@ -0,0 +1,29 @@
|
|||
;N.G_urine_post_pred;N.G_urine_post_test
|
||||
135;0.05086441795509831;0.0529247320444273
|
||||
66;0.021707216044258813;0.0108796802732645
|
||||
31;0.05098110320416847;0.0515449616724398
|
||||
118;0.1986947185427742;0.188107995633296
|
||||
42;0.05086441795509831;0.0506626188659772
|
||||
12;0.021707216044258813;0.0113548568210471
|
||||
51;0.09421167215491391;0.0951333511997158
|
||||
68;0.19809439451540634;0.171557659924219
|
||||
126;0.13061349446017023;0.119485276352258
|
||||
55;0.06961352827085382;0.0667875239596586
|
||||
112;0.13011144183755327;0.123815203264847
|
||||
130;0.1961190382480418;0.154488505725275
|
||||
80;0.021707216044258813;0.0076095576685619
|
||||
19;0.19981856716868593;0.272844194500416
|
||||
86;0.05111222025963886;0.055175352947481
|
||||
69;0.021707216044258813;0.0217994520873827
|
||||
11;0.04878825662552083;0.0429014736388349
|
||||
27;0.04189297775817049;0.0376318042074121
|
||||
134;0.0417618607027001;0.0413891896435029
|
||||
109;0.13020117909587717;0.125418620172573
|
||||
36;0.021707216044258813;0.0099228939919132
|
||||
117;0.0509955350105687;0.0513273823920579
|
||||
78;0.04878825662552083;0.043477623740852
|
||||
4;0.04934047340042474;0.013261781074106693
|
||||
73;0.0874994671328377;0.0794711130589172
|
||||
26;0.021707216044258813;0.0265467369144264
|
||||
132;0.08453674769358381;0.0735684560429879
|
||||
60;0.19888167795245607;0.16638741325803
|
|
|
@ -0,0 +1,29 @@
|
|||
;VA.GG_plasm_post_pred;VA.GG_plasm_post_test
|
||||
135;0.2648096548101919;0.22367295622825623
|
||||
66;0.22838976263374067;0.206263498920086
|
||||
31;0.0916913958159726;0.0706361672884351
|
||||
118;0.18939543363867273;0.178283919104653
|
||||
42;0.22959718742787577;0.22367295622825623
|
||||
12;0.14619379530095397;0.137885332809739
|
||||
51;0.1505146587722372;0.148439033968192
|
||||
68;0.12321092578677316;0.125073630473198
|
||||
126;0.12792176959713214;0.121735715688199
|
||||
55;0.1713234779273612;0.170724523856273
|
||||
112;0.2574800490899422;0.26595326919301
|
||||
130;0.29690459578959827;0.277243275083448
|
||||
80;0.10358064712836734;0.121833889652464
|
||||
19;0.5729093335244595;0.80458472413116
|
||||
86;0.38529063635500455;0.418613783624583
|
||||
69;0.24519015979397252;0.255890437855881
|
||||
11;0.14592082270008713;0.13665815825643
|
||||
27;0.2598637395667415;0.26678774788926
|
||||
134;0.2648096548101919;0.22367295622825623
|
||||
109;0.22770611724826684;0.224082073434125
|
||||
36;0.1984269232378562;0.18304535637149
|
||||
117;0.240439364527067;0.248281955625368
|
||||
78;0.0989129401005292;0.105684272530925
|
||||
4;0.09272521224216553;0.0595915963086589
|
||||
73;0.23444145682033052;0.21367563322207
|
||||
26;0.09409132830365827;0.0626349892008639
|
||||
132;0.34736107338148364;0.363390928725702
|
||||
60;0.09265630240127486;0.0780973885725506
|
|
|
@ -0,0 +1,29 @@
|
|||
;N.G_urine_post_pred;N.G_urine_post_test
|
||||
135;0.05518442;0.0529247320444273
|
||||
66;0.0122934105;0.0108796802732645
|
||||
31;0.05102571;0.0515449616724398
|
||||
118;0.1894632;0.188107995633296
|
||||
42;0.044539068;0.0506626188659772
|
||||
12;0.0102638705;0.0113548568210471
|
||||
51;0.09550045;0.0951333511997158
|
||||
68;0.17094064;0.171557659924219
|
||||
126;0.11742354;0.119485276352258
|
||||
55;0.06351607;0.0667875239596586
|
||||
112;0.117554046;0.123815203264847
|
||||
130;0.15520063;0.154488505725275
|
||||
80;0.0108091105;0.0076095576685619
|
||||
19;0.29692876;0.272844194500416
|
||||
86;0.052918825;0.055175352947481
|
||||
69;0.022970198;0.0217994520873827
|
||||
11;0.045403283;0.0429014736388349
|
||||
27;0.04019478;0.0376318042074121
|
||||
134;0.04453094;0.0413891896435029
|
||||
109;0.11813126;0.125418620172573
|
||||
36;0.011324345;0.0099228939919132
|
||||
117;0.058518294;0.0513273823920579
|
||||
78;0.042234477;0.043477623740852
|
||||
4;0.054109164;0.013261781074106693
|
||||
73;0.07674072;0.0794711130589172
|
||||
26;0.028509555;0.0265467369144264
|
||||
132;0.06684038;0.0735684560429879
|
||||
60;0.16964237;0.16638741325803
|
|
|
@ -0,0 +1,29 @@
|
|||
;VA.GG_plasm_post_pred;VA.GG_plasm_post_test
|
||||
135;0.2244904;0.22367295622825623
|
||||
66;0.20138052;0.206263498920086
|
||||
31;0.06996433;0.0706361672884351
|
||||
118;0.1778712;0.178283919104653
|
||||
42;0.2238371;0.22367295622825623
|
||||
12;0.13481562;0.137885332809739
|
||||
51;0.1431751;0.148439033968192
|
||||
68;0.1305776;0.125073630473198
|
||||
126;0.12506935;0.121735715688199
|
||||
55;0.1717052;0.170724523856273
|
||||
112;0.26646265;0.26595326919301
|
||||
130;0.2698097;0.277243275083448
|
||||
80;0.12602201;0.121833889652464
|
||||
19;0.6727942;0.80458472413116
|
||||
86;0.39973035;0.418613783624583
|
||||
69;0.24454327;0.255890437855881
|
||||
11;0.13581507;0.13665815825643
|
||||
27;0.26988387;0.26678774788926
|
||||
134;0.2244904;0.22367295622825623
|
||||
109;0.22349113;0.224082073434125
|
||||
36;0.1833107;0.18304535637149
|
||||
117;0.23970571;0.248281955625368
|
||||
78;0.10431304;0.105684272530925
|
||||
4;0.055494722;0.0595915963086589
|
||||
73;0.21229331;0.21367563322207
|
||||
26;0.0598753;0.0626349892008639
|
||||
132;0.37697884;0.363390928725702
|
||||
60;0.07764315;0.0780973885725506
|
|
|
@ -0,0 +1,8 @@
|
|||
index;Value
|
||||
target;N.G_urine_post
|
||||
method;lgbm_N.G_urine_post
|
||||
r2;0.8573715911694122
|
||||
mae;0.015487411558224353
|
||||
mse;0.0005920928096717641
|
||||
mape;0.35363547256076877
|
||||
ev;0.867079591533086
|
|
|
@ -0,0 +1,8 @@
|
|||
index;Value
|
||||
target;N.G_urine_post
|
||||
method;rf_N.G_urine_post
|
||||
r2;0.9027202099704911
|
||||
mae;0.012155348699758784
|
||||
mse;0.00040383724865967
|
||||
mape;0.34990468419411275
|
||||
ev;0.9114494185446067
|
|
|
@ -0,0 +1,8 @@
|
|||
index;Value
|
||||
target;N.G_urine_post
|
||||
method;xgb_N.G_urine_post
|
||||
r2;0.977919599356779
|
||||
mae;0.004914908118497069
|
||||
mse;9.166228918007278e-05
|
||||
mape;0.1788868464010748
|
||||
ev;0.9789261610083124
|
|
|
@ -0,0 +1,8 @@
|
|||
index;Value
|
||||
target;VA.GG_plasm_post
|
||||
method;lgbm_VA.GG_plasm_post
|
||||
r2;0.5961953324746384
|
||||
mae;0.04966652328394555
|
||||
mse;0.008194788842795198
|
||||
mape;0.23448883214180147
|
||||
ev;0.6156738107297529
|
|
|
@ -0,0 +1,8 @@
|
|||
index;Value
|
||||
target;VA.GG_plasm_post
|
||||
method;rf_VA.GG_plasm_post
|
||||
r2;0.8877926925304193
|
||||
mae;0.023191421041242714
|
||||
mse;0.0022771286844376535
|
||||
mape;0.11939103830122665
|
||||
ev;0.8878668603106743
|
|
|
@ -0,0 +1,8 @@
|
|||
index;Value
|
||||
target;VA.GG_plasm_post
|
||||
method;xgb_VA.GG_plasm_post
|
||||
r2;0.9677423751183961
|
||||
mae;0.008467668652597644
|
||||
mse;0.0006546343956220804
|
||||
mape;0.025950829210001865
|
||||
ev;0.969570912906077
|
|
29
results/test_cases/prueba_predSex_NG.csv
Normal file
|
@ -0,0 +1,29 @@
|
|||
;N.G_urine_post;rf_pred;Sex;Sex
|
||||
135;0.0529247320444273;0.11519540504720363;MAN;WOMAN
|
||||
66;0.0108796802732645;0.09304851136931377;MAN;WOMAN
|
||||
31;0.0515449616724398;0.09060882599096201;MAN;WOMAN
|
||||
118;0.188107995633296;0.11893231773448086;MAN;WOMAN
|
||||
42;0.0506626188659772;0.1080303174515295;MAN;WOMAN
|
||||
12;0.0113548568210471;0.06003421269599896;WOMAN;MAN
|
||||
51;0.0951333511997158;0.08254920960749518;WOMAN;MAN
|
||||
68;0.171557659924219;0.08632441569987241;MAN;WOMAN
|
||||
126;0.119485276352258;0.12468227622326487;MAN;WOMAN
|
||||
55;0.0667875239596586;0.060723322562127986;WOMAN;MAN
|
||||
112;0.123815203264847;0.11015349190288186;MAN;WOMAN
|
||||
130;0.154488505725275;0.08257674486545197;MAN;WOMAN
|
||||
80;0.0076095576685619;0.07618622051841979;MAN;WOMAN
|
||||
19;0.272844194500416;0.0762135161502902;WOMAN;MAN
|
||||
86;0.055175352947481;0.08379362053340524;MAN;WOMAN
|
||||
69;0.0217994520873827;0.07263459739610198;WOMAN;MAN
|
||||
11;0.0429014736388349;0.08108463429749654;WOMAN;MAN
|
||||
27;0.0376318042074121;0.09803989663659543;MAN;WOMAN
|
||||
134;0.0413891896435029;0.11587611889849395;MAN;WOMAN
|
||||
109;0.125418620172573;0.09106327242238932;WOMAN;MAN
|
||||
36;0.0099228939919132;0.0690975224712229;MAN;WOMAN
|
||||
117;0.0513273823920579;0.10615465513151033;MAN;WOMAN
|
||||
78;0.043477623740852;0.10260672705226723;MAN;WOMAN
|
||||
4;0.013261781074106693;0.0625031232480254;WOMAN;MAN
|
||||
73;0.0794711130589172;0.07350135729410198;MAN;WOMAN
|
||||
26;0.0265467369144264;0.08369916734464222;MAN;WOMAN
|
||||
132;0.0735684560429879;0.09645127745879443;MAN;WOMAN
|
||||
60;0.16638741325803;0.06796166451183494;WOMAN;MAN
|
|
29
results/test_cases/prueba_predSweet.csv
Normal file
|
@ -0,0 +1,29 @@
|
|||
;N.G_urine_post_test;xgb_pred;rf_pred;lgbm_pred
|
||||
135;0.0529247320444273;0.05062977;0.05086441795509831;0.05536898613312216
|
||||
66;0.0108796802732645;0.0122248735;0.021707216044258813;0.013792022506882586
|
||||
31;0.0515449616724398;0.054252476;0.05098110320416847;0.06236216017273262
|
||||
118;0.188107995633296;0.18432674;0.1986947185427742;0.20177542742659058
|
||||
42;0.0506626188659772;0.050705686;0.05086441795509831;0.05170749460909193
|
||||
12;0.0113548568210471;0.014794738;0.021707216044258813;0.024495228433606343
|
||||
51;0.0951333511997158;0.09675295;0.09421167215491391;0.09103335302521662
|
||||
68;0.171557659924219;0.17246799;0.19809439451540634;0.20085444534853159
|
||||
126;0.119485276352258;0.116543606;0.13061349446017023;0.13433392303532832
|
||||
55;0.0667875239596586;0.062937506;0.06961352827085382;0.07446719153475265
|
||||
112;0.123815203264847;0.11674135;0.13011144183755327;0.1538077310644473
|
||||
130;0.154488505725275;0.1565769;0.1961190382480418;0.1644712848637967
|
||||
80;0.0076095576685619;0.010732338;0.021707216044258813;0.011198247208830935
|
||||
19;0.272844194500416;0.305219;0.19981856716868593;0.2084384198154575
|
||||
86;0.055175352947481;0.05220163;0.05111222025963886;0.054716474913225885
|
||||
69;0.0217994520873827;0.022699608;0.021707216044258813;0.019530519656531336
|
||||
11;0.0429014736388349;0.0484911;0.04878825662552083;0.05591875357517836
|
||||
27;0.0376318042074121;0.04232392;0.04189297775817049;0.051465623713963446
|
||||
134;0.0413891896435029;0.040710114;0.0417618607027001;0.04263815075423456
|
||||
109;0.125418620172573;0.11573715;0.13020117909587717;0.15904823336157933
|
||||
36;0.0099228939919132;0.01400986;0.021707216044258813;0.019792157569276245
|
||||
117;0.0513273823920579;0.05450689;0.0509955350105687;0.0491890837027212
|
||||
78;0.043477623740852;0.040848803;0.04878825662552083;0.04045707239876587
|
||||
4;0.013261781074106693;0.0688208;0.04934047340042474;0.0926570936587656
|
||||
73;0.0794711130589172;0.07644528;0.0874994671328377;0.07128237673643059
|
||||
26;0.0265467369144264;0.028721271;0.021707216044258813;0.026443174824656114
|
||||
132;0.0735684560429879;0.06396975;0.08453674769358381;0.07243869852629636
|
||||
60;0.16638741325803;0.17054793;0.19888167795245607;0.14378265080792801
|
|
29
results/test_cases/prueba_predSweet_VA-GG.csv
Normal file
|
@ -0,0 +1,29 @@
|
|||
;VA.GG_plasm_post_test;xgb_pred;rf_pred;lgbm_pred;Sweetener;Sweetener
|
||||
135;0.22367295622825623;0.2238371;0.22981579096947916;0.30650084142689904;SA;SU
|
||||
66;0.206263498920086;0.20134255;0.22847468724130374;0.2100881131077047;SU;ST
|
||||
31;0.0706361672884351;0.07773162;0.11443613541674305;0.1575257215640448;ST;SA
|
||||
118;0.178283919104653;0.17394687;0.1833570461277877;0.18622221767257174;SA;SU
|
||||
42;0.22367295622825623;0.2244904;0.2648096548101919;0.3675569775176365;ST;SA
|
||||
12;0.137885332809739;0.13571283;0.1577715828064613;0.18918219215127624;ST;SA
|
||||
51;0.148439033968192;0.14362201;0.15050042338498731;0.16159310313114006;SU;ST
|
||||
68;0.125073630473198;0.12953366;0.12296345070672964;0.1270634483774916;SU;ST
|
||||
126;0.121735715688199;0.12279611;0.10118574401456477;0.13834920175379253;SA;SU
|
||||
55;0.170724523856273;0.17049621;0.17123432935218058;0.18095619369098817;SU;ST
|
||||
112;0.26595326919301;0.26535332;0.25789867700850033;0.2886808991988531;SA;SU
|
||||
130;0.277243275083448;0.27156845;0.2882557625100194;0.30087041917179413;SA;SU
|
||||
80;0.121833889652464;0.12592441;0.10334448970648809;0.13110539234541374;SU;ST
|
||||
19;0.80458472413116;0.68981016;0.6320146089840428;0.45663695515687225;ST;SA
|
||||
86;0.418613783624583;0.3996321;0.38507333598700333;0.42555622870271104;SU;ST
|
||||
69;0.255890437855881;0.2443824;0.24520298827348516;0.22976985884082385;SU;ST
|
||||
11;0.13665815825643;0.13180844;0.1625431003840964;0.19432491460547266;ST;SA
|
||||
27;0.26678774788926;0.26877758;0.261396780338057;0.3291373134463038;ST;SA
|
||||
134;0.22367295622825623;0.2238371;0.22981579096947916;0.30650084142689904;SA;SU
|
||||
109;0.224082073434125;0.22379582;0.22782044644681612;0.2158354276685252;SA;SU
|
||||
36;0.18304535637149;0.18933222;0.20462092522207748;0.22573906945212016;ST;SA
|
||||
117;0.248281955625368;0.24057306;0.2416160266540426;0.21781517607317152;SA;SU
|
||||
78;0.105684272530925;0.10530975;0.09866546502048568;0.11652321316584963;SU;ST
|
||||
4;0.0595915963086589;0.061541352;0.11571682188397216;0.15807250512417753;ST;SA
|
||||
73;0.21367563322207;0.21226786;0.23433146783788242;0.2137809482065179;SU;ST
|
||||
26;0.0626349892008639;0.06570398;0.11816879261284292;0.1673356674356697;ST;SA
|
||||
132;0.363390928725702;0.36349946;0.3292200188396314;0.41336670872977;SA;SU
|
||||
60;0.0780973885725506;0.0780764;0.09262393622972714;0.10607383209288813;SU;ST
|
|
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
BIN
scripts/__pycache__/modelSanoApp.cpython-311.pyc
Normal file
|
@ -104,7 +104,7 @@ def exec_models(df, directory, targets, features, multiple = False):
|
|||
post_model(xgb_model, X_test=X_test, y_test=y_test, targets = target, modelname = "xgb_"+target, savePath=directory)
|
||||
post_model(rf_model, X_test=X_test, y_test=y_test, targets = target, modelname ="rf_"+target, savePath=directory)
|
||||
post_model(lgbm_model, X_test=X_test, y_test=y_test, targets = target, modelname ="lgbm_"+target, savePath=directory)
|
||||
|
||||
return ([xgb_model, rf_model, lgbm_model], X_test, y_test)
|
||||
## execution
|
||||
|
||||
main_df = pd.read_csv(os.path.join("..", "data", "final_merge.csv"), sep =";", decimal= ".")
|
||||
|
|
13428
scripts/pruebas.ipynb
51
scripts/test_results.py
Normal file
|
@ -0,0 +1,51 @@
|
|||
from modelSanoApp import exec_models, preproc
|
||||
from fit_models import RFfit_lgbm
|
||||
import pandas as pd
|
||||
import os
|
||||
import time
|
||||
|
||||
main_df = pd.read_csv(os.path.join("..", "data", "final_merge.csv"), sep =";", decimal= ".")
|
||||
main_df[['Sex', 'Sweetener']] = main_df[['Sex', 'Sweetener']].astype("category")
|
||||
|
||||
study_features = ["Sex", "Sweetener"]
|
||||
|
||||
directory = "../results/test_cases"
|
||||
|
||||
|
||||
print(" ----------------- STARTING "+ directory + "----------------- ")
|
||||
VA_GG = False
|
||||
if VA_GG:
|
||||
if not os.path.exists(directory):
|
||||
os.mkdir(directory)
|
||||
targets = ['VA.GG_plasm_post']
|
||||
features = ['VA_plasm_pre','VA.GG_plasm_pre', 'VA.S_pre', 'VA.GS_plasm_pre', 'VA.SS_plasm_pre', 'Total.VA_plasm_pre'] + study_features
|
||||
|
||||
model_list, X_test, y_test = exec_models(main_df, features=features, targets=targets, multiple=False, directory=directory+"/")
|
||||
|
||||
X_test_sweetShifted = X_test.replace(["SA", "ST", "SU"], ["SU", "SA", "ST"])
|
||||
|
||||
pred_xgb = pd.Series(model_list[0].predict(X_test_sweetShifted), index = y_test.index, name = "xgb_pred")
|
||||
pred_rf = pd.Series(model_list[1].predict(X_test_sweetShifted), index = y_test.index, name = "rf_pred")
|
||||
pred_lgbm = pd.Series(model_list[2].predict(X_test_sweetShifted), index = y_test.index, name = "lgbm_pred")
|
||||
|
||||
pd.concat([y_test, pred_xgb, pred_rf, pred_lgbm, X_test["Sweetener"], X_test_sweetShifted["Sweetener"]], axis = 1).to_csv(directory+"/prueba_predSweet_VA-GG.csv", sep = ";")
|
||||
|
||||
NG = True
|
||||
|
||||
if NG:
|
||||
if not os.path.exists(directory):
|
||||
os.mkdir(directory)
|
||||
target = ['N.G_urine_post']
|
||||
features = ['N.G_plasm_pre', 'N_pre','N.G_urine_pre', 'N.GG_pre', 'N.S_pre', 'Total.N_pre'] + study_features
|
||||
|
||||
X_train, X_test, X_val, y_train, y_test, y_val = preproc(df=main_df, targets=target, features=features)
|
||||
|
||||
rf_model = RFfit_lgbm(X_train, X_test, X_val, y_train, y_test, y_val)
|
||||
|
||||
X_test_sexShifted = X_test.replace(["MAN", "WOMAN"], ["WOMAN", "MAN"]).
|
||||
|
||||
#pred_xgb = pd.Series(model_list[0].predict(X_test_sexShifted), index = y_test.index, name = "xgb_pred")
|
||||
pred_rf = pd.Series(rf_model.predict(X_test_sexShifted), index = y_test.index, name = "rf_pred")
|
||||
#pred_lgbm = pd.Series(model_list[2].predict(X_test_sexShifted), index = y_test.index, name = "lgbm_pred")
|
||||
|
||||
pd.concat([y_test, pred_rf, X_test["Sex"], X_test_sexShifted["Sex"]] , axis = 1).to_csv(directory+"/prueba_predSex_NG.csv", sep = ";")
|