mirror of
https://github.com/wassname/ray.git
synced 2026-08-03 13:10:57 +08:00
[RLlib] Exploration API (+EpsilonGreedy sub-class). (#6974)
This commit is contained in:
@@ -164,7 +164,7 @@ def deep_update(original, new_dict, new_keys_allowed, whitelist):
|
||||
if k not in original:
|
||||
if not new_keys_allowed:
|
||||
raise Exception("Unknown config parameter `{}` ".format(k))
|
||||
if isinstance(original.get(k), dict):
|
||||
if isinstance(original.get(k), dict) and isinstance(value, dict):
|
||||
if k in whitelist:
|
||||
deep_update(original[k], value, True, [])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user