[3f1788]: / analysis / args.py

Download this file

29 lines (26 with data), 731 Bytes

 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
#!/usr/bin/env python
from argparse import Namespace
from pathlib import Path
path = Path('../data')
args = Namespace(
workdir=path/'workdir',
figdir=path/'results/figures',
resultdir=path/'results',
dataset_csv=path/'proc_dataset.csv',
imminent_adm_cols=['hadm_id', 'processed_note', 'imminent_adm_label'],
prolonged_stay_cols=['hadm_id', 'processed_note', 'prolonged_stay_label'],
cols=['hadm_id', 'imminent_adm_label', 'prolonged_stay_label', 'processed_note', 'charttime', 'intime', 'chartinterval'],
dates=['charttime', 'intime'],
ia_thresh={
'lr': 0.45,
'rf': 0.27,
'gbm': 0.435,
'mlp': 0.2,
},
ps_thresh={
'lr': 0.39,
'rf': 0.36,
'gbm': 0.324,
'mlp': 0.27,
},
)