mirror of
https://github.com/wassname/ray.git
synced 2026-07-02 07:38:49 +08:00
[RLlib] Exploration API (+EpsilonGreedy sub-class). (#6974)
This commit is contained in:
@@ -214,7 +214,7 @@ class TBXLogger(Logger):
|
||||
full_attr, value, global_step=step)
|
||||
# In case TensorboardX still doesn't think it's a valid value
|
||||
# (e.g. `[[]]`), warn and move on.
|
||||
except ValueError:
|
||||
except (ValueError, TypeError):
|
||||
logger.warning(
|
||||
"You are trying to log an invalid value ({}={}) "
|
||||
"via {}!".format(full_attr, value,
|
||||
|
||||
@@ -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