From e33b0e853407abf16b3850ef286924e93e573a6a Mon Sep 17 00:00:00 2001 From: cxx Date: Thu, 26 Oct 2017 17:08:32 +0800 Subject: [PATCH] Fix preset mistakes. --- presets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presets.py b/presets.py index 1e61ac6..96e8de7 100644 --- a/presets.py +++ b/presets.py @@ -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(';')]