Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
6474a061
Commit
6474a061
authored
Nov 07, 2019
by
Alessia Marcolini
Browse files
Handle patients
parent
3ad9c75b
Changes
1
Hide whitespace changes
Inline
Side-by-side
radiomics_pipeline/feature_selection/feature_selection.py
View file @
6474a061
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment