mirror of
https://github.com/wassname/ray.git
synced 2026-07-13 05:00:54 +08:00
[tune] Tweaks to Trainable and Verbosity (#2889)
This commit is contained in:
@@ -234,10 +234,10 @@ class Agent(Trainable):
|
||||
|
||||
return Trainable.train(self)
|
||||
|
||||
def _setup(self):
|
||||
def _setup(self, config):
|
||||
env = self._env_id
|
||||
if env:
|
||||
self.config["env"] = env
|
||||
config["env"] = env
|
||||
if _global_registry.contains(ENV_CREATOR, env):
|
||||
self.env_creator = _global_registry.get(ENV_CREATOR, env)
|
||||
else:
|
||||
@@ -248,7 +248,7 @@ class Agent(Trainable):
|
||||
|
||||
# Merge the supplied config with the class default
|
||||
merged_config = self._default_config.copy()
|
||||
merged_config = deep_update(merged_config, self.config,
|
||||
merged_config = deep_update(merged_config, config,
|
||||
self._allow_unknown_configs,
|
||||
self._allow_unknown_subkeys)
|
||||
self.config = merged_config
|
||||
|
||||
Reference in New Issue
Block a user