Commit 6474a061 authored by Alessia Marcolini's avatar Alessia Marcolini
Browse files

Handle patients

parent 3ad9c75b
......@@ -47,9 +47,10 @@ def create_param_grid(params):
# %%
FEATURE_NAME = 'merged_radiomics_features_F_SVC_Locoregional.csv_features_noTx_F_SVC_Locoregional.csv' #'radiomics_features'#'features_noTx' #Tstage_binary_augmented_noTx_branch_wise_20191025-160304'
FEATURE_NAME = 'features_noTx_AUG' # 'radiomics_features'# #Tstage_binary_augmented_noTx_branch_wise_20191025-160304'
FEATUREFILE = f'{FEATURE_NAME}.csv'
LAB_COL = 'Locoregional'
PATIENT_COL = 'patient'
EXP = 'LR_noTx_branch_wise_free_aug_CT_20191027-124913'
OUTFILE = f'{FEATURE_NAME}_F_SVC_{LAB_COL}.csv'
......@@ -74,7 +75,7 @@ LABELFILE = f'{PATH}/data/clinical_data_noTx.csv'
features = pd.read_csv(f'{FEATDIR}/{FEATUREFILE}', index_col =0)
labels = pd.read_csv(LABELFILE, index_col =0)[LAB_COL].to_frame()
features = pd.merge(features, labels, left_index=True, right_index=True)
features.pop(PATIENT_COL)
labels = features.pop(LAB_COL).to_frame()
X = features.values
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment