Skip to content

Add notebook for building model from clinical data #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,154 changes: 2,154 additions & 0 deletions clinical_model/clinical_data.ipynb

Large diffs are not rendered by default.

2,319 changes: 2,319 additions & 0 deletions clinical_model/clinical_data_with_imputed_values.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
PatientID,prediction_Clinical-logistic-regression-gridsearchedParams-l1penalty-liblinear-trainedOn312Patients
P_102,0.33520004647784835
P_117,0.06827689247042472
P_16,0.13584828184647155
P_118,0.7975236836311405
P_114,0.4282911929313953
P_2,0.5607635032130464
P_20,0.8791060732905628
P_26,0.37615970263923376
P_38,0.17539619031427528
P_41,0.5662134515078459
P_49,0.1607696261695052
P_45,0.39998307827296087
P_40,0.6567350933745325
P_55,0.15078852023168587
P_58,0.6936727399468227
P_53,0.07938684251078379
P_54,0.18994299016175986
P_65,0.2471092057157912
P_68,0.21118541518519335
P_7,0.07290098155043286
P_75,0.2270635764561114
P_112,0.5377720346883706
P_116,0.19923650965029246
P_14,0.5841029589439515
P_17,0.764786127124441
P_111,0.44908579731238213
P_1,0.17901755433065009
P_106,0.7724132167599
P_113,0.45708141399737634
P_104,0.3294183049598339
P_21,0.41069691477025
P_25,0.3512817849966773
P_44,0.08860785830460742
P_46,0.27606226883431606
P_43,0.20652410772080362
P_30,0.6120256368189827
P_50,0.41241659393951874
P_60,0.3891833520344404
P_6,0.4580981480214153
P_69,0.18005363844199188
P_66,0.11480638012803182
P_85,0.8581273726962804
P_94,0.2278812627780469
P_84,0.18295590526231506
P_83,0.12304522933578058
P_91,0.24543700816344285
P_76,0.2198964059213189
P_77,0.530927099559969
P_81,0.4658834530602529
P_82,0.8765728099098288
P_93,0.2307890949678067
P_98,0.2817343412587218
P_96,0.3128442272142378
P_95,0.420416680576292
P_80,0.875917955810806
P_87,0.8473339962284742
P_11,0.12939075660289623
P_115,0.17932515301714272
P_18,0.3412197166013632
P_12,0.4085514105511912
P_119,0.31999979532889444
P_15,0.3317820046672228
P_100,0.442321181987111
P_107,0.616294812707784
P_10,0.9886770584328072
P_101,0.7923609634624441
P_108,0.08003254948363757
P_110,0.8563301321803212
P_24,0.665118287186855
P_28,0.8138245654764317
P_23,0.8063273894728695
P_29,0.3245450002343199
P_32,0.606421411801071
P_37,0.6802529357544478
P_34,0.7860112241050077
P_35,0.626668308143247
P_36,0.34647149057349647
P_39,0.09921526941333601
P_4,0.7419867041541264
P_42,0.376626436080426
P_63,0.5375326047740958
P_61,0.18159398036610488
P_62,0.4121356368846893
P_59,0.4139631148649756
P_70,0.32800228129546755
P_72,0.363302970875322
P_74,0.22693675422272985
P_97,0.4503424328184856
P_99,0.21009202275843925
P_73,0.19939571075463042
P_78,0.18419547543075346
P_71,0.3254840991389562
P_120,0.3456758805905774
P_13,0.3002468351439
P_22,0.5961214844455944
P_105,0.7083471027674944
P_109,0.6882021260968174
P_103,0.4777795011847989
P_19,0.25850371254408455
P_27,0.26326323331807183
P_3,0.34560859025267243
P_33,0.12648624250858967
P_31,0.7299946886551383
P_47,0.46315094593381667
P_48,0.20489716776284475
P_57,0.16939842591837587
P_5,0.2860990510662038
P_51,0.8770743465243397
P_56,0.19027433629860382
P_52,0.08535363595664093
P_64,0.4535418761626194
P_67,0.37293363879865526
P_79,0.3726676202504323
P_8,0.3187365182964029
P_89,0.3424301683759125
P_88,0.20473068036960596
P_92,0.05807647412335641
P_86,0.4948297380918963
P_9,0.6778152753642893
P_90,0.32128617511339685
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
PatientID,prediction_Clinical-logistic-regression-gridsearchedParams-l1penalty-liblinear-trainedOn758PatientsWithImputation
P_102,0.3859644918622136
P_117,0.07284203230498752
P_16,0.07596895381275044
P_118,0.9274230083127741
P_114,0.5142052481657664
P_2,0.5203429898535421
P_20,0.8000266412980864
P_26,0.22480692845410072
P_38,0.1822518446772093
P_41,0.5716081459889104
P_49,0.2473877082260779
P_45,0.16565900991729404
P_40,0.7093868803545182
P_55,0.1979382554661376
P_58,0.9370410730987137
P_53,0.08148851451642634
P_54,0.08294504685675824
P_65,0.37617956013175763
P_68,0.35082219144166366
P_7,0.12534370993786753
P_75,0.19789852978823735
P_112,0.6707704472783014
P_116,0.19805373425310113
P_14,0.6263954320158809
P_17,0.5513416542968695
P_111,0.428343994858313
P_1,0.13438014802808462
P_106,0.7783368402394052
P_113,0.31689459434644496
P_104,0.24976073218044986
P_21,0.23995234648296687
P_25,0.22963990332329398
P_44,0.09021678959182249
P_46,0.3781880682643061
P_43,0.3265208524727368
P_30,0.6997096980573042
P_50,0.4426652399472462
P_60,0.3207795092231149
P_6,0.1934011763186107
P_69,0.13343361173621096
P_66,0.0740632399118832
P_85,0.8854477880159981
P_94,0.23190371268296364
P_84,0.1955168690975254
P_83,0.23803926535577632
P_91,0.23848790972929118
P_76,0.2843177940396236
P_77,0.8673916935008623
P_81,0.4004369413550231
P_82,0.8742958150342303
P_93,0.08080227666418292
P_98,0.467161058965024
P_96,0.23565533294391522
P_95,0.5445814366451247
P_80,0.8282874671584735
P_87,0.9555111563767205
P_11,0.059184061740297486
P_115,0.3225233207342592
P_18,0.2550110459899284
P_12,0.623587242858893
P_119,0.49512849763874905
P_15,0.5608572003946439
P_100,0.21366138277655405
P_107,0.7598771587425981
P_10,0.9919207015221694
P_101,0.7063801922502047
P_108,0.18363395680077926
P_110,0.9421521314646447
P_24,0.7365033803070948
P_28,0.7818310300697472
P_23,0.6808312092485941
P_29,0.6400896202911683
P_32,0.44742023295516
P_37,0.6946437690664641
P_34,0.7681504496611707
P_35,0.600524125260131
P_36,0.3665075968331374
P_39,0.17383317531486894
P_4,0.8587062403466065
P_42,0.3232414000393499
P_63,0.7475300485626806
P_61,0.1767042091824176
P_62,0.46973162577547806
P_59,0.43752823467747265
P_70,0.19947511560093817
P_72,0.3100108707372959
P_74,0.1443317377442051
P_97,0.295647292893258
P_99,0.2170817253904323
P_73,0.20278616364162716
P_78,0.18479805444077033
P_71,0.581513813023997
P_120,0.34810997392105003
P_13,0.5975978103825967
P_22,0.5369159972769143
P_105,0.63716075585888
P_109,0.6121339462956245
P_103,0.30342540538527224
P_19,0.10225471287027968
P_27,0.1726493557480162
P_3,0.2404355338123172
P_33,0.31041182111727883
P_31,0.835361706924908
P_47,0.3810059842730029
P_48,0.27986321930047503
P_57,0.46219508350777755
P_5,0.08958116840252862
P_51,0.9275899520989356
P_56,0.13710198371029936
P_52,0.07490890194571004
P_64,0.569648866590487
P_67,0.4214220485937342
P_79,0.2721423316936425
P_8,0.3092079108946637
P_89,0.26971439193936825
P_88,0.20075491283355626
P_92,0.07237953993542133
P_86,0.5736632700761363
P_9,0.6491348300524976
P_90,0.28817196014750335
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
PatientID,prediction_Clinical-logistic-regression-nopenalty-lbfgs-trainedOn312Patients
P_102,0.24903656599446405
P_117,0.04003292783510478
P_16,0.12446757810452885
P_118,0.9218160374499078
P_114,0.4286919261325882
P_2,0.6640975112163694
P_20,0.9701462449738542
P_26,0.40350849858638743
P_38,0.1208567522913325
P_41,0.7725482931492166
P_49,0.07875418683872765
P_45,0.4343138006325572
P_40,0.7276851679444762
P_55,0.15253447403064463
P_58,0.8784259011286092
P_53,0.025821151017420253
P_54,0.23949971971236725
P_65,0.12741975197440444
P_68,0.20367678616280735
P_7,0.02510497766076813
P_75,0.10381775699916347
P_112,0.5862375095444788
P_116,0.1541375635924125
P_14,0.7447034500619543
P_17,0.8043590491041641
P_111,0.3928752589840098
P_1,0.13477245574194524
P_106,0.8036419967131622
P_113,0.2999517103060956
P_104,0.3183387823212139
P_21,0.5734787382187158
P_25,0.24574649024284842
P_44,0.0370316065900205
P_46,0.22916173088150432
P_43,0.12339156681362115
P_30,0.6928260601737747
P_50,0.32724604748247815
P_60,0.48186534037452167
P_6,0.5095930829252183
P_69,0.1421954988590595
P_66,0.08087919589605003
P_85,0.9022399978238933
P_94,0.10188391243468453
P_84,0.24780992174710426
P_83,0.07991659330774005
P_91,0.2181067932193218
P_76,0.12944253336885472
P_77,0.41860703749776523
P_81,0.4749830682794505
P_82,0.9321785218637345
P_93,0.23557437027348954
P_98,0.369719152762019
P_96,0.25844036130117654
P_95,0.28040712453966216
P_80,0.9771688451492363
P_87,0.8363211321161775
P_11,0.12495360676520206
P_115,0.10173593582734358
P_18,0.22990816675523057
P_12,0.38342801146690786
P_119,0.3162849081476485
P_15,0.2377489248825254
P_100,0.5675477509654552
P_107,0.7246437743095745
P_10,0.9994069351568323
P_101,0.8971340337656126
P_108,0.04077080591014789
P_110,0.8751943820848411
P_24,0.8781596323416284
P_28,0.9644450441403449
P_23,0.9309188166665078
P_29,0.3510101876751694
P_32,0.7051648055228926
P_37,0.6414231072570596
P_34,0.882659254222237
P_35,0.7156817381482089
P_36,0.28832412541491176
P_39,0.030598088898500145
P_4,0.8263203337126278
P_42,0.297984514254678
P_63,0.6694741987477717
P_61,0.09583497157167596
P_62,0.29356760542853205
P_59,0.3500394829880046
P_70,0.2890625180939771
P_72,0.4674465959129291
P_74,0.15504646053445142
P_97,0.43165048417498425
P_99,0.11431370256706168
P_73,0.11272392805569711
P_78,0.11492311015642452
P_71,0.21199110034589025
P_120,0.27036557823277135
P_13,0.21381100516035592
P_22,0.5516303971242341
P_105,0.8390841609161274
P_109,0.7820717005086841
P_103,0.41686027760095956
P_19,0.2729547667960578
P_27,0.2537375276543555
P_3,0.2738278688121344
P_33,0.07477187752443443
P_31,0.8448419680451451
P_47,0.43146175916292073
P_48,0.15466418064258186
P_57,0.11060379553685333
P_5,0.3522418049485151
P_51,0.9279976991287591
P_56,0.13622296469253095
P_52,0.054660053928964995
P_64,0.7182330795665481
P_67,0.2767831256918614
P_79,0.5145329801340882
P_8,0.2647806566559488
P_89,0.3273118637511314
P_88,0.09156193298298344
P_92,0.02644416054907079
P_86,0.5000568945321757
P_9,0.8194760027662711
P_90,0.2293672292636861
Loading