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
7e06facb
Commit
7e06facb
authored
Sep 08, 2020
by
Andrei Roibu
Browse files
added call for data-based evaluation
parent
815f5223
Changes
1
Show whitespace changes
Inline
Side-by-side
run.py
View file @
7e06facb
...
...
@@ -526,6 +526,12 @@ if __name__ == '__main__':
mapping_evaluation_parameters
=
settings_evaluation
[
'MAPPING'
]
evaluate_mapping
(
mapping_evaluation_parameters
)
elif
arguments
.
mode
==
'evaluate_data'
:
logging
.
basicConfig
(
filename
=
'evaluate-data-error.log'
)
settings_evaluation
=
Settings
(
evaluation_settings_file_name
)
mapping_evaluation_parameters
=
settings_evaluation
[
'MAPPING'
]
evaluate_data
(
mapping_evaluation_parameters
)
elif
arguments
.
mode
==
'clear-checkpoints'
:
if
network_parameters
[
'cross_domain_flag'
]
==
True
:
if
network_parameters
[
'cross_domain_x2x_flag'
]
==
True
:
...
...
@@ -572,4 +578,4 @@ if __name__ == '__main__':
else
:
raise
ValueError
(
'Invalid mode value! Only supports: train, evaluate-
score
, evaluate-mapping, train-and-evaluate-mapping, clear-checkpoints, clear-logs, clear-experiment and clear-everything (req uncomment for safety!)'
)
'Invalid mode value! Only supports: train, evaluate-
data
, evaluate-mapping, train-and-evaluate-mapping, clear-checkpoints, clear-logs, clear-experiment and clear-everything (req uncomment for safety!)'
)
Write
Preview
Supports
Markdown
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