Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MPBA Radiomics
RADLER
Commits
4b5d8d22
Commit
4b5d8d22
authored
Mar 11, 2020
by
Alessia Marcolini
Browse files
Change parameter name from 'label_file' to 'clinical_file'
parent
798aa7bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataset.py
View file @
4b5d8d22
...
...
@@ -68,7 +68,7 @@ class NumpyCSVDataset(Dataset):
def
__init__
(
self
,
data_dir
,
labe
l_file
,
clinica
l_file
,
label_col
,
size
,
transforms
=
augment_3D
,
...
...
@@ -88,7 +88,7 @@ class NumpyCSVDataset(Dataset):
np
.
random
.
seed
(
self
.
seed
)
clinical
=
pd
.
read_csv
(
labe
l_file
,
dtype
=
str
).
sort_values
(
by
=
[
'patient'
])
clinical
=
pd
.
read_csv
(
clinica
l_file
,
dtype
=
str
).
sort_values
(
by
=
[
'patient'
])
available_files
=
[
f
for
f
in
os
.
listdir
(
data_dir
)
if
f
.
endswith
(
'.npy'
)]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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