Upload readme.md
Browse files
readme.md
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Configuration File Instructions
|
2 |
+
|
3 |
+
Below are the instructions to create a valid configuration file.
|
4 |
+
|
5 |
+
## Configuration File Structure
|
6 |
+
|
7 |
+
The configuration file should be in YAML format (.config file) and follow the structure outlined below:
|
8 |
+
|
9 |
+
```yaml
|
10 |
+
disease_label: <disease_label> mandatory only if the task prediction is Phenotype
|
11 |
+
timePrediction: <timePrediction>
|
12 |
+
timeWindow: <timeWindow>
|
13 |
+
timebucket: <timebucket>
|
14 |
+
radimp: <radimp>
|
15 |
+
predW: <predW>
|
16 |
+
diagnosis: <diagnosis>
|
17 |
+
output: <output>
|
18 |
+
chart: <chart>
|
19 |
+
proc: <proc>
|
20 |
+
meds: <meds>
|
21 |
+
disease_filter: <disease_filter>
|
22 |
+
icu_no_icu: <icu_no_icu>
|
23 |
+
groupingICD: <groupingICD>
|
24 |
+
select_diag: <select_diag>
|
25 |
+
select_med: <select_med>
|
26 |
+
select_proc: <select_proc>
|
27 |
+
select_out: <select_out>
|
28 |
+
select_chart: <select_chart>
|
29 |
+
outlier_removal: <outlier_removal>
|
30 |
+
outlier: <outlier>
|
31 |
+
left_outlier: <left_outlier>
|
32 |
+
```
|
33 |
+
|
34 |
+
Replace the `<variable>` placeholders with the corresponding values specific to your use case. Detailed explanations of each variable and their valid values are provided in the next section.
|
35 |
+
|
36 |
+
## Variable Definitions and Valid Values
|
37 |
+
|
38 |
+
- `disease_label` (string): Specifies the disease label. Valid values: CAD, Heart Failure, CKD, COPD.
|
39 |
+
- `timePrediction` (integer): Specifies the time prediction. Valid values depend on the task:
|
40 |
+
- For Phenotype task: 30
|
41 |
+
- For Mortality task: 0
|
42 |
+
- For Length of Stay task: Between 1 and 10 (inclusive)
|
43 |
+
- For Readmission task: Between 10 and 150 (inclusive), multiple of 10
|
44 |
+
- `timeWindow` (string): Specifies the time window. Valid values:
|
45 |
+
- For Phenotype or Readmission task: Last X hours (with 24 <= X >= 72)
|
46 |
+
- For Mortality or Length of Stay tasks: First X hours (with 24 <= X >= 72)
|
47 |
+
- `timebucket` (integer): Specifies the time bucket. Valid values: Between 1 and 6 (inclusive).
|
48 |
+
- `radimp` (string): Specifies the imputation method. Valid values:
|
49 |
+
- No Imputation
|
50 |
+
- forward fill and mean
|
51 |
+
- forward fill and median
|
52 |
+
- `predW` (integer): Specifies the prediction window. Valid values depend on the task:
|
53 |
+
- For Phenotype, Length of Stay, or Readmission tasks: 0
|
54 |
+
- For Mortality task: Between 2 and 8 (inclusive)
|
55 |
+
- `diagnosis`, `output`, `chart`, `proc`, `meds` (boolean): Specifies whether to include each respective flag. Valid values: True or False.
|
56 |
+
- `disease_filter` (string): Specifies the disease filter. Valid values:
|
57 |
+
- Heart Failure
|
58 |
+
- COPD
|
59 |
+
- CKD
|
60 |
+
- CAD
|
61 |
+
- No Disease Filter
|
62 |
+
- `icu_no_icu` (string): Specifies the dataset type. Valid values: ICU.
|
63 |
+
- `groupingICD` (string): Specifies the grouping ICD option. Valid values:
|
64 |
+
- Convert ICD-9 to ICD-10 and group ICD-10 codes
|
65 |
+
- Keep both ICD-9 and ICD-10 codes
|
66 |
+
- Convert ICD-9 to ICD-10 codes
|
67 |
+
- `select_diag`, `select_med`, `select_proc`, `select_out`, `select_chart` (boolean): Specifies whether to select each respective option. Valid values: True or False.
|
68 |
+
- `outlier_removal` (string): Specifies the outlier removal method. Valid values:
|
69 |
+
- No outlier detection
|
70 |
+
- Impute Outlier (default:98)
|
71 |
+
- Remove outliers (default:98)
|
72 |
+
- `outlier` (integer): Specifies the outlier threshold. Valid values: Between 90 and 99 (inclusive).
|
73 |
+
- `left_outlier` (integer): Specifies the left outlier threshold. Valid values: Between 0 and 10 (inclusive).
|
74 |
+
|
75 |
+
## Example Configuration File
|
76 |
+
|
77 |
+
Here's an example of a valid configuration file:
|
78 |
+
|
79 |
+
```yaml
|
80 |
+
disease_label: CAD
|
81 |
+
timePrediction: 30
|
82 |
+
timeWindow: Last 72 hours
|
83 |
+
timebucket: 2
|
84 |
+
radimp: forward fill and mean
|
85 |
+
predW: 0
|
86 |
+
diagnosis: True
|
87 |
+
output: True
|
88 |
+
chart: True
|
89 |
+
proc: True
|
90 |
+
meds: True
|
91 |
+
disease_filter: No Disease Filter
|
92 |
+
icu_no_icu: ICU
|
93 |
+
groupingICD: Convert ICD-9 to ICD-10 and group ICD-10 codes
|
94 |
+
select_diag: False
|
95 |
+
select_med: False
|
96 |
+
select_proc: False
|
97 |
+
select_out: False
|
98 |
+
select_chart: False
|
99 |
+
outlier_removal: Impute Outlier (default:98)
|
100 |
+
outlier: 98
|
101 |
+
left_outlier: 0
|
102 |
+
```
|
103 |
+
|
104 |
+
Feel free to modify the values to fit your specific requirements.
|
105 |
+
|
106 |
+
## Usage
|
107 |
+
Provide the full path of your configuration file while calling the loading dataset function with the parameter config_path=`<path_to_config_file>`.
|
108 |
+
To use the `check_config` function, pass the task name and the path to your configuration file as arguments:
|
109 |
+
|