浏览代码

Updated logging in trainer.

- The logger in trainer.py is now unitytrainers. This makes it
easier to differentiate it from unityagents logs.
/develop-generalizationTraining-TrainerController
Deric Pang 6 年前
当前提交
ff4ce695
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 4
      python/unityagents/environment.py
  2. 2
      python/unitytrainers/trainer.py

4
python/unityagents/environment.py


"""
if config is None:
config = self._resetParameters
elif config != {}:
logger.info("\nAcademy Reset with parameters : \t{0}"
elif config:
logger.info("Academy reset with parameters: {0}"
.format(', '.join([str(x) + ' -> ' + str(config[x]) for x in config])))
for k in config:
if (k in self._resetParameters) and (isinstance(config[k], (int, float))):

2
python/unitytrainers/trainer.py


from unityagents import UnityException, AllBrainInfo
logger = logging.getLogger("unityagents")
logger = logging.getLogger("unitytrainers")
class UnityTrainerException(UnityException):

正在加载...
取消
保存