thbndi commited on
Commit
a0f5ce1
·
1 Parent(s): c2be269

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. 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(' ', 1)[0]
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']