thbndi commited on
Commit
25e2a05
·
1 Parent(s): 708ec90

Update cohort.py

Browse files
Files changed (1) hide show
  1. cohort.py +3 -3
cohort.py CHANGED
@@ -13,7 +13,7 @@ def task_cohort(task,mimic_path,path_benchmark, config_path):
13
  config_path='./config/'+config_path
14
  with open(config_path) as f:
15
  config = yaml.safe_load(f)
16
- version_path = mimic_path
17
  version = version_path.split('/')[-1][0]
18
  start = time.time()
19
  #----------------------------------------------config----------------------------------------------------
@@ -53,9 +53,9 @@ def task_cohort(task,mimic_path,path_benchmark, config_path):
53
 
54
  #-----------------------------------------------EXTRACT MIMIC-----------------------------------------------------
55
  if version == '2':
56
- cohort_output = day_intervals_cohort_v22.extract_data(icu_no_icu,label,tim,icd_code, root_dir,disease_label)
57
  elif version == '1':
58
- cohort_output = day_intervals_cohort.extract_data(icu_no_icu,label,tim,icd_code, root_dir,disease_label)
59
  end = time.time()
60
  print("Time elapsed : ", round((end - start)/60,2),"mins")
61
  #----------------------------------------------FEATURES-------------------------------------------------------
 
13
  config_path='./config/'+config_path
14
  with open(config_path) as f:
15
  config = yaml.safe_load(f)
16
+ version_path = './'+mimic_path
17
  version = version_path.split('/')[-1][0]
18
  start = time.time()
19
  #----------------------------------------------config----------------------------------------------------
 
53
 
54
  #-----------------------------------------------EXTRACT MIMIC-----------------------------------------------------
55
  if version == '2':
56
+ cohort_output = day_intervals_cohort_v22.extract_data(icu_no_icu,label,tim,icd_code, root_dir,version_path,disease_label)
57
  elif version == '1':
58
+ cohort_output = day_intervals_cohort.extract_data(icu_no_icu,label,tim,icd_code, root_dir,version_path,disease_label)
59
  end = time.time()
60
  print("Time elapsed : ", round((end - start)/60,2),"mins")
61
  #----------------------------------------------FEATURES-------------------------------------------------------