From f3c41a0a069480a716ddc93dd5923752b3dd564f Mon Sep 17 00:00:00 2001 From: Ervin T Date: Thu, 19 Nov 2020 16:49:30 -0800 Subject: [PATCH] [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 --- com.unity.ml-agents/CHANGELOG.md | 1 + ml-agents/mlagents/trainers/stats.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/com.unity.ml-agents/CHANGELOG.md b/com.unity.ml-agents/CHANGELOG.md index c39e9efc29..981baf088b 100755 --- a/com.unity.ml-agents/CHANGELOG.md +++ b/com.unity.ml-agents/CHANGELOG.md @@ -35,6 +35,7 @@ Previously, this would result in an infinite loop and cause the editor to hang. - Fixed an issue where runs could not be resumed when using TensorFlow and Ghost Training. (#4593) - Change the tensor type of step count from int32 to int64 to address the overflow issue when step goes larger than 2^31. Previous Tensorflow checkpoints will become incompatible and cannot be loaded. (#4607) + - Remove extra period after "Training" in console log. (#4674) ## [1.5.0-preview] - 2020-10-14 diff --git a/ml-agents/mlagents/trainers/stats.py b/ml-agents/mlagents/trainers/stats.py index 053b44986b..b34937e356 100644 --- a/ml-agents/mlagents/trainers/stats.py +++ b/ml-agents/mlagents/trainers/stats.py @@ -111,11 +111,11 @@ def __init__(self): def write_stats( self, category: str, values: Dict[str, StatsSummary], step: int ) -> None: - is_training = "Not Training." + is_training = "Not Training" if "Is Training" in values: stats_summary = values["Is Training"] if stats_summary.mean > 0.0: - is_training = "Training." + is_training = "Training" elapsed_time = time.time() - self.training_start_time log_info: List[str] = [category] @@ -136,7 +136,7 @@ def write_stats( 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