mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:06:31 +08:00
Fix Python linting error. (#3113)
This commit is contained in:
committed by
Eric Liang
parent
22dd7e0428
commit
9d2e864caf
@@ -213,8 +213,8 @@ class Agent(Trainable):
|
||||
# Create a default logger creator if no logger_creator is specified
|
||||
if logger_creator is None:
|
||||
timestr = datetime.today().strftime("%Y-%m-%d_%H-%M-%S")
|
||||
logdir_prefix = "{}_{}_{}".format(
|
||||
self._agent_name, self._env_id, timestr)
|
||||
logdir_prefix = "{}_{}_{}".format(self._agent_name, self._env_id,
|
||||
timestr)
|
||||
|
||||
def default_logger_creator(config):
|
||||
"""Creates a Unified logger with a default logdir prefix
|
||||
|
||||
Reference in New Issue
Block a user