[81a4e3]: / utils / mapping.py

Download this file

158 lines (135 with data), 3.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
age_mapping = {
'20th': 20,
'10th': 10,
'30th': 30,
'70th': 70,
'40th': 40,
'80th': 80,
'50th': 50,
'60th': 60,
'Above 90th': 100,
'90th': 90,
'more than 40': 50,
'more than 30': 40,
'more than 50': 60,
'40': 40
}
age_binary_mapping = {
"ZERO": 0,
"ONE": 1,
"zero": 0,
"one": 1,
"0zERO": 0
}
gender_mapping = {
'one': 1,
'zero': 0,
'ONe': 1
}
hypertension_mapping = {
'High': 1,
'hiGH': 1,
'LOW': 0,
'Low': 0,
'0LOW': 0,
}
other_conditions_mapping = {
'not known': 0,
'one': 1,
'zero': 0,
'Zero': 0,
}
albumin_median_mapping = {
' albumin median not known': 0.6052631578947367,
'Null': 0.6052631578947367
}
albumin_mean_mapping = {
'Null': 0.6052631578947367
}
albumin_min_mapping = {
'o point 6': 0.6
}
albumin_diff_mapping = {
'minus 1': -1
}
be_arterial_min_mapping = {
'minus 1': -1
}
bicarb_venous_min_mapping = {
'Null': -0.3170731707317074
}
calcium_max_mapping = {
'Null': 0.3571428571428568
}
lymphocytes_median_mapping = {
'Unknown': -0.614108
}
neutrophils_mean_mapping = {
'Unknown': -0.8128394214828789
}
pcr_diff_mapping = {
'Minus One': -1
}
platelets_mean_mapping = {
'Unknown': -0.2283044058744992
}
potassium_median = {
'Unknown': -0.4814814814814814
}
satO2_median_mapping = {
'Unknown': 0.9393939393939394
}
sodium_mapping = {
'Unknown': -1
}
dimer_mapping = {
'Unknown': -0.9780287553482635
}
resp_mapping = {
'Unknown': -0.4285714285714286
}
target_mapping = {
12 : 1,
'Unknown' : 0,
'Null' : 0,
}
data_tags_mapping = {
'Motor Neurone Disease': 1,
'Lung cancer': 2,
'asthma': 3,
'Lung cancer, Motor Neurone Disease': 4,
'Smoker': 5,
'asthma, Motor Neurone Disease': 6,
'heart disease':7,
'Lung cancer, asthma, Motor Neurone Disease': 8,
'Lung cancer, asthma': 9,
'Motor Neurone Disease, Smoker': 10,
'Lung cancer, heart disease, asthma, Motor Neurone Disease': 11,
'Nothing':12,
'Lung cancer, Smoker': 13,
'Lung cancer, asthma, Smoker': 14,
'asthma, Kidney disease, Motor Neurone Disease': 15,
'Lung cancer, heart disease, Motor Neurone Disease': 16,
'Kidney disease': 17,
'asthma, Smoker': 18,
'Lung cancer, asthma, Motor Neurone Disease, Smoker': 19,
'asthma, Motor Neurone Disease, Smoker': 20,
'Lung cancer, heart disease': 21,
'heart disease, Kidney disease': 22,
'Unknown': 1,
'Lung cancer, asthma, Kidney disease, Motor Neurone Disease, Smoker': 23,
'asthma, Kidney disease': 24,
'asthma, Kidney disease, Smoker': 25,
'heart disease, Motor Neurone Disease': 26,
'heart disease, asthma, Smoker': 27,
'heart disease, asthma, Motor Neurone Disease': 28,
'heart disease, asthma': 29,
'heart disease, asthma, Kidney disease, Smoker': 30
}
observation_mapping = {
'0-2': 2,
'2-4': 4,
'4-6': 6,
'6-12': 8,
'ABOVE_12':10,
}