Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrei-Claudiu Roibu
BrainMapper
Commits
ea89c4db
Commit
ea89c4db
authored
Sep 08, 2020
by
Andrei Roibu
Browse files
changed output stats type to csv
parent
282671ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
settings_evaluation.ini
View file @
ea89c4db
...
...
@@ -2,7 +2,7 @@
trained_model_path
=
"saved_models/VA2-1.pth.tar"
prediction_output_path
=
"VA2-1_predictions"
prediction_output_database_name
=
"output_test_data.h5"
prediction_output_statistics_name
=
"output_statistics.
pkl
"
prediction_output_statistics_name
=
"output_statistics.
csv
"
data_directory
=
"/well/win-biobank/projects/imaging/data/data3/subjectsAll/"
mapping_data_file
=
"dMRI/autoptx_preproc/tractsNormSummed.nii.gz"
mapping_targets_file
=
"fMRI/rfMRI_25.dr/dr_stage2.nii.gz"
...
...
utils/data_evaluation_utils.py
View file @
ea89c4db
...
...
@@ -222,7 +222,7 @@ def evaluate_data(trained_model_path,
raise
(
exception_expression
)
output_statistics_df
=
pd
.
DataFrame
.
from_dict
(
output_statistics
,
orient
=
'index'
,
columns
=
[
'mse'
,
'mae'
,
'cel'
,
'pearson_r'
,
'pearson_p'
,
'spearman_r'
,
'spearman_p'
,
'regression_w'
,
'regression_b'
])
output_statistics_df
.
to_
pickle
(
output_statistics_path
)
output_statistics_df
.
to_
csv
(
output_statistics_path
)
log
.
info
(
"Output Data Generation Complete"
)
...
...
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