Skip to content

Commit

Permalink
[air/output] Add newlines between status blocks (#36765)
Browse files Browse the repository at this point in the history
Adds newlines between status output blocks and fixes a phrasing issue with the train reporter.

Signed-off-by: Kai Fricke <kai@anyscale.com>
  • Loading branch information
krfricke authored Jun 23, 2023
1 parent 0d9cb92 commit c682770
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/ray/tune/experimental/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,7 @@ def on_trial_result(
f"at {curr_time_str}. Total running time: " + running_time_str
)
self._print_result(trial, result)
print("")

def on_trial_complete(
self, iteration: int, trials: List[Trial], trial: Trial, **info
Expand All @@ -1028,10 +1029,11 @@ def on_trial_complete(
finished_iter = trial.last_result[TRAINING_ITERATION]
print(
f"{self._addressing_tmpl.format(trial)} "
f"completed training after {finished_iter} iterations "
f"completed after {finished_iter} iterations "
f"at {curr_time_str}. Total running time: " + running_time_str
)
self._print_result(trial)
print("")

def on_checkpoint(
self,
Expand All @@ -1052,6 +1054,7 @@ def on_checkpoint(
f"saved a checkpoint for iteration {saved_iter} "
f"at: {checkpoint.dir_or_data}"
)
print("")

def on_trial_start(self, iteration: int, trials: List[Trial], trial: Trial, **info):
if self._verbosity < self._start_end_verbosity:
Expand All @@ -1068,6 +1071,7 @@ def on_trial_start(self, iteration: int, trials: List[Trial], trial: Trial, **in
f"{self._addressing_tmpl.format(trial)} "
f"started without custom configuration."
)
print("")


class TuneResultProgressCallback(AirResultProgressCallback):
Expand Down

0 comments on commit c682770

Please sign in to comment.