Commit 7e06facb authored by Andrei Roibu's avatar Andrei Roibu
Browse files

added call for data-based evaluation

parent 815f5223
......@@ -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!)')
Markdown is supported
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