Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -2
Mimic4Dataset.py
CHANGED
@@ -38,9 +38,8 @@ _CONFIG_URLS = {'los' : 'https://huggingface.co/datasets/thbndi/Mimic4Dataset/re
|
|
38 |
def check_config(task,config_file):
|
39 |
with open(config_file) as f:
|
40 |
config = yaml.safe_load(f)
|
41 |
-
print(task)
|
42 |
if 'Custom' in task:
|
43 |
-
task = task.rsplit('
|
44 |
|
45 |
if task=='Phenotype':
|
46 |
disease_label = config['disease_label']
|
|
|
38 |
def check_config(task,config_file):
|
39 |
with open(config_file) as f:
|
40 |
config = yaml.safe_load(f)
|
|
|
41 |
if 'Custom' in task:
|
42 |
+
task = task.rsplit('_', 1)[0]
|
43 |
|
44 |
if task=='Phenotype':
|
45 |
disease_label = config['disease_label']
|