1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 11:10:20 +01:00

Fix preset mistakes.

This commit is contained in:
cxx
2017-10-26 17:08:32 +08:00
committed by Gal Leibovich
parent f43c951c2d
commit e33b0e8534

View File

@@ -33,10 +33,10 @@ def json_to_preset(json_path):
tuning_parameters.agent = eval(run_dict['agent_type'])()
if run_dict['environment_type'] is not None:
tuning_parameters.agent = eval(run_dict['environment_type'])()
tuning_parameters.env = eval(run_dict['environment_type'])()
if run_dict['exploration_policy_type'] is not None:
tuning_parameters.agent = eval(run_dict['exploration_policy_type'])()
tuning_parameters.exploration = eval(run_dict['exploration_policy_type'])()
if run_dict['custom_parameter'] is not None:
unstripped_key_value_pairs = [pair.split('=') for pair in run_dict['custom_parameter'].split(';')]