-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
50 lines (40 loc) · 1.06 KB
/
constants.py
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
from pathlib import Path
from pandasql import PandaSQL
from secret import MIMIC_PATH_STR, POSTGRESQL_CONNECTION_STRING
MIMIC_PATH = Path(MIMIC_PATH_STR)
# temporary path
TEMP_PATH = Path("tmp")
TEMP_PATH.mkdir(parents=True, exist_ok=True)
# result path
RESULT_PATH = Path("result")
RESULT_PATH.mkdir(parents=True, exist_ok=True)
# measures whose null represent false value
NULLABLE_MEASURES = [
"dka_type",
"macroangiopathy",
"microangiopathy",
"mechanical_ventilation",
"use_NaHCO3",
"history_aci",
"history_ami",
"congestive_heart_failure",
"liver_disease",
"ckd_stage",
"malignant_cancer",
"hypertension",
"uti",
"chronic_pulmonary_disease",
]
# categorical values
CATEGORICAL_MEASURES = [
"dka_type",
"gender",
"race",
"liver_disease",
"ckd_stage",
]
TARGET_PATIENT_FILE = "target_patients.csv"
queryPostgresDf = PandaSQL(POSTGRESQL_CONNECTION_STRING)
## Archived notebooks
ARCHIVED_NOTEBOOKS_PATH = Path("archived_notebooks_limited-new")
ARCHIVED_NOTEBOOKS_PATH.mkdir(parents=True, exist_ok=True)