浏览代码

[bug-fix] Remove extra period (#4674)

* Remove extra period

* Update changelog

* Re add a period (#4676)

* Adding a trailing period

* formating

Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com>
/MLA-1734-demo-provider
GitHub 4 年前
当前提交
4617a7b6
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 1
      com.unity.ml-agents/CHANGELOG.md
  2. 6
      ml-agents/mlagents/trainers/stats.py

1
com.unity.ml-agents/CHANGELOG.md


### Bug Fixes
#### com.unity.ml-agents (C#)
#### ml-agents / ml-agents-envs / gym-unity (Python)
- Remove extra period after "Training" in console log. (#4674)
## [1.6.0-preview] - 2020-11-18

6
ml-agents/mlagents/trainers/stats.py


def write_stats(
self, category: str, values: Dict[str, StatsSummary], step: int
) -> None:
is_training = "Not Training."
is_training = "Not Training"
is_training = "Training."
is_training = "Training"
elapsed_time = time.time() - self.training_start_time
log_info: List[str] = [category]

else:
log_info.append("No episode was completed since last summary")
log_info.append(is_training)
logger.info(". ".join(log_info))
logger.info(". ".join(log_info) + ".")
def add_property(
self, category: str, property_type: StatsPropertyType, value: Any

正在加载...
取消
保存