Algorithm 1.
Train, tune, and evaluate a model to predict if a patient should be placed on CRRT.
| 1: | choose from {UCLA: CRRT, UCLA: Control, Cedars: CRRT } | |
| 2: | choose from {UCLA: CRRT, UCLA: Control, Cedars: CRRT } | |
| 3: | if then | |
| 4: | ▷ Split dataset into 60/20/20% respectively. | |
| 5: | else | |
| 6: | ▷ Split dataset into 80/20% respectively. | |
| 7: | end if | |
| 8: | days | ▷ look-back window size |
| 9: | ▷ model type | |
| 10: | ▷ imputation method | |
| 11: | ▷ feature selection method | |
| 12: | ▷ Set hyperparameter grid | |
| 13: | function Tuning | |
| 14: | metrics ⇐ {} | |
| 15: | for do | |
| 16: | Train | |
| 17: | ||
| 18: | end for | |
| 19: | such that corresponding metric is max/min (best) | |
| 20: | return m* | |
| 21: | end function | |
| 22: | ||
| 23: | metrics ⇐ Evaluate | |
| 24: | subpopulations ⇐ (heart, liver, infection) × (male, female, race) | |
| 25: | for subpopulation in subpopulations do | |
| 26: | metrics by subpopulation ⇐ Evaluate | |
| 27: | end for | |