thbndi commited on
Commit
fb5888c
·
1 Parent(s): 2193822

Update Mimic4Dataset.py

Browse files
Files changed (1) hide show
  1. Mimic4Dataset.py +10 -10
Mimic4Dataset.py CHANGED
@@ -607,30 +607,30 @@ def task_cohort(task, mimic_path, config_path):
607
  #----------------------------------------------FEATURE SELECTION---------------------------------------------
608
 
609
  #----------------------------------------------FEATURE SELECTION---------------------------------------------
610
-
611
  if data_icu:
612
  if select_chart or select_out or select_diag or select_med or select_proc:
613
  if select_chart:
614
- input('Please modify the file \'preproc_chart_icu.csv.gz\' in the folder /data/features to select the chart items to keep and press enter to continue')
615
  if select_out:
616
- input('Please modify the file \'preproc_out_icu.csv.gz\' in the folder /data/features to select the output items to keep and press enter to continue')
617
  if select_diag:
618
- input('Please modify the file \'preproc_diag_icu.csv.gz\' in the folder /data/features to select the diagnosis ids to keep and press enter to continue')
619
  if select_med:
620
- input('Please modify the file \'preproc_med_icu.csv.gz\' in the folder /data/features to select the meds items to keep and press enter to continue')
621
  if select_proc:
622
- input('Please modify the file \'preproc_proc_icu.csv.gz\' in the folder /data/features to select the procedures ids to keep and press enter to continue')
623
  feature_selection_icu.features_selection_icu(cohort_output, diag_flag,proc_flag,med_flag,out_flag, chart_flag,select_diag,select_med,select_proc,select_out,select_chart)
624
  else:
625
  if select_diag or select_med or select_proc or select_lab:
626
  if select_diag:
627
- input('Please modify the file \'preproc_diag.csv.gz\' in the folder /data/features to select the diagnosis ids to keep and press enter to continue')
628
  if select_med:
629
- input('Please modify the file \'preproc_med.csv.gz\' in the folder /data/features to select the meds items to keep and press enter to continue')
630
  if select_proc:
631
- input('Please modify the file \'preproc_proc.csv.gz\' in the folder /data/features to select the procedures ids to keep and press enter to continue')
632
  if select_lab:
633
- input('Please modify the file \'preproc_labs.csv.gz\' in the folder /data/features to select the labs items to keep and press enter to continue')
634
  feature_selection_hosp.features_selection_hosp(cohort_output, diag_flag,proc_flag,med_flag,lab_flag,select_diag,select_med,select_proc,select_lab)
635
 
636
  #---------------------------------------CLEANING OF FEATURES-----------------------------------------------
 
607
  #----------------------------------------------FEATURE SELECTION---------------------------------------------
608
 
609
  #----------------------------------------------FEATURE SELECTION---------------------------------------------
610
+
611
  if data_icu:
612
  if select_chart or select_out or select_diag or select_med or select_proc:
613
  if select_chart:
614
+ input('Please edit list of codes in ./data/summary/chart_features.csv to select the chart items to keep and press enter to continue')
615
  if select_out:
616
+ input('Please edit list of codes in ./data/summary/out_features.csv to select the output items to keep and press enter to continue')
617
  if select_diag:
618
+ input('Please edit list of codes in ./data/summary/diag_features.csv to select the diagnosis ids to keep and press enter to continue')
619
  if select_med:
620
+ input('Please edit list of codes in ./data/summary/med_features.csv to select the meds items to keep and press enter to continue')
621
  if select_proc:
622
+ input('Please edit list of codes in ./data/summary/proc_features.csv to select the procedures ids to keep and press enter to continue')
623
  feature_selection_icu.features_selection_icu(cohort_output, diag_flag,proc_flag,med_flag,out_flag, chart_flag,select_diag,select_med,select_proc,select_out,select_chart)
624
  else:
625
  if select_diag or select_med or select_proc or select_lab:
626
  if select_diag:
627
+ input('Please edit list of codes in ./data/summary/diag_features.csv to select the diagnosis ids to keep and press enter to continue')
628
  if select_med:
629
+ input('Please edit list of codes in ./data/summary/med_features.csv to select the meds items to keep and press enter to continue')
630
  if select_proc:
631
+ input('Please edit list of codes in ./data/summary/proc_features.csv to select the procedures ids to keep and press enter to continue')
632
  if select_lab:
633
+ input('Please edit list of codes in ./data/summary/labs_features.csv to select the labs items to keep and press enter to continue')
634
  feature_selection_hosp.features_selection_hosp(cohort_output, diag_flag,proc_flag,med_flag,lab_flag,select_diag,select_med,select_proc,select_lab)
635
 
636
  #---------------------------------------CLEANING OF FEATURES-----------------------------------------------