|
a |
|
b/lr/args.py |
|
|
1 |
#!/usr/bin/env python |
|
|
2 |
|
|
|
3 |
from argparse import Namespace |
|
|
4 |
from pathlib import Path |
|
|
5 |
|
|
|
6 |
path = Path('../data') |
|
|
7 |
workdir=path/'workdir/lr' |
|
|
8 |
|
|
|
9 |
args = Namespace( |
|
|
10 |
workdir=workdir, |
|
|
11 |
figdir=path/'figures', |
|
|
12 |
dataset_csv=path/'proc_dataset.csv', |
|
|
13 |
cols=['hadm_id', 'imminent_adm_label', 'prolonged_stay_label', 'processed_note', 'charttime', 'intime', 'chartinterval'], |
|
|
14 |
imminent_adm_cols=['hadm_id', 'processed_note', 'imminent_adm_label'], |
|
|
15 |
prolonged_stay_cols=['hadm_id', 'processed_note', 'prolonged_stay_label'], |
|
|
16 |
dates=['charttime', 'intime'], |
|
|
17 |
modeldir=workdir/'models', |
|
|
18 |
min_freq=3, |
|
|
19 |
ia_thresh=0.45, |
|
|
20 |
ps_thresh=0.41, |
|
|
21 |
start_seed=127, |
|
|
22 |
) |
|
|
23 |
|
|
|
24 |
ia_params = { |
|
|
25 |
'class_weight': 'balanced', |
|
|
26 |
'solver': 'liblinear', |
|
|
27 |
'multi_class': 'ovr', |
|
|
28 |
'dual': True, |
|
|
29 |
'C': 0.336, |
|
|
30 |
} |
|
|
31 |
|
|
|
32 |
ps_params = { |
|
|
33 |
'class_weight': 'balanced', |
|
|
34 |
'solver': 'liblinear', |
|
|
35 |
'multi_class': 'ovr', |
|
|
36 |
'dual': True, |
|
|
37 |
} |
|
|
38 |
|