Commit f66be60
committed
Day 3: Validated NEWS2 scoring and designed ML feature pipelines
- Fixed bug in score_vital: LOC scoring was skipped due to early NaN return.
- Validated GCS/LOC scoring against NHS NEWS2 rules (edge cases now correct).
- Finalised missing data strategies:
• Timestamp-level: LOCF + missingness flags.
• Patient-level: median imputation + % missingness.
- Designed pipeline for make_timestamp_features.py (LOCF, flags, rolling windows, staleness, ordinal encoding).
- Designed pipeline for make_patient_features.py (aggregates, median imputation, % missingness, escalation summaries).
- Selected LightGBM as primary ML model (handles NaNs, interpretable, best fit for tabular ICU data).
- Documented all findings, rationales, and lessons in notes.md.1 parent 3b4f528 commit f66be60
2 files changed
Lines changed: 17 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | | - | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | | - | |
20 | | - | |
| 17 | + | |
21 | 18 | | |
22 | | - | |
23 | | - | |
| 19 | + | |
24 | 20 | | |
25 | | - | |
26 | | - | |
| 21 | + | |
27 | 22 | | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
217 | 213 | | |
218 | 214 | | |
219 | 215 | | |
| 216 | + | |
| 217 | + | |
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
| 223 | + | |
225 | 224 | | |
226 | 225 | | |
| 226 | + | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
0 commit comments