python/ray/tune/progress_reporter.py
def _progress_str(
        self,
        trials: List[Trial],
        done: bool,
        *sys_info: Dict,
        fmt: str = "psql",
        delim: str = "\n",
    ):
        """Returns full progress string.

        This string contains a progress table and error table. The progress
        table describes the progress of each trial. The error table lists
        the error file, if any, corresponding to each trial. The latter only
        exists if errors have occurred.

        Args:
            trials: Trials to report on.
            done: Whether this is the last progress report attempt.
            fmt: Table format. See `tablefmt` in tabulate API.
            delim: Delimiter between messages.
        """
        if not self._metrics_override:
            user_metrics = self._infer_user_metrics(trials, self._infer_limit)
            self._metric_columns.update(user_metrics)
        messages = [
            "== Status ==",
            time_passed_str(self._start_time, time.time()),
            memory_debug_str(),
            *sys_info,
        ]
        if done:
            max_progress = None
            max_error = None
        else:
            max_progress = self._max_progress_rows
            max_error = self._max_error_rows

        current_best_trial, metric = self._current_best_trial(trials)
        if current_best_trial:
            messages.append(
                best_trial_str(current_best_trial, metric, self._parameter_columns)
            )

        if has_verbosity(Verbosity.V1_EXPERIMENT):
            # Will filter the table in `trial_progress_str`
            messages.append(
                trial_progress_str(
                    trials,
                    metric_columns=self._metric_columns,
                    parameter_columns=self._parameter_columns,
                    total_samples=self._total_samples,
                    force_table=self._print_intermediate_tables,
                    fmt=fmt,
                    max_rows=max_progress,
                    done=done,
                    metric=self._metric,
                    mode=self._mode,
                    sort_by_metric=self._sort_by_metric,
                )
            )
            messages.append(trial_errors_str(trials, fmt=fmt, max_rows=max_error))

        return delim.join(messages) + delim
Returns full progress string.

        This string contains a progress table and error table. The progress
        table describes the progress of each trial. The error table lists
        the error file, if any, corresponding to each trial. The latter only
        exists if errors have occurred.

        Args:
            trials: Trials to report on.
            done: Whether this is the last progress report attempt.
            fmt: Table format. See `tablefmt` in tabulate API.
            delim: Delimiter between messages.
        
Returns full progress string.
This string contains a progress table and error table. The progress
table describes the progress of each trial. The error table lists
the error file, if any, corresponding to each trial. The latter only
exists if errors have occurred.
Returns full progress string . This string contains a progress table and error table . The progress table describes the progress of each trial . The error table lists the error file if any corresponding to each trial . The latter only exists if errors have occurred .
def _progress_str(
        self,
        trials: List[Trial],
        done: bool,
        *sys_info: Dict,
        fmt: str = "psql",
        delim: str = "\n",
    ):
        if not self._metrics_override:
            user_metrics = self._infer_user_metrics(trials, self._infer_limit)
            self._metric_columns.update(user_metrics)
        messages = [
            "== Status ==",
            time_passed_str(self._start_time, time.time()),
            memory_debug_str(),
            *sys_info,
        ]
        if done:
            max_progress = None
            max_error = None
        else:
            max_progress = self._max_progress_rows
            max_error = self._max_error_rows
        current_best_trial, metric = self._current_best_trial(trials)
        if current_best_trial:
            messages.append(
                best_trial_str(current_best_trial, metric, self._parameter_columns)
            )
        if has_verbosity(Verbosity.V1_EXPERIMENT):
            messages.append(
                trial_progress_str(
                    trials,
                    metric_columns=self._metric_columns,
                    parameter_columns=self._parameter_columns,
                    total_samples=self._total_samples,
                    force_table=self._print_intermediate_tables,
                    fmt=fmt,
                    max_rows=max_progress,
                    done=done,
                    metric=self._metric,
                    mode=self._mode,
                    sort_by_metric=self._sort_by_metric,
                )
            )
            messages.append(trial_errors_str(trials, fmt=fmt, max_rows=max_error))
        return delim.join(messages) + delim
def _progress_str ( self , trials : List [ Trial ] , done : bool , * sys_info : Dict , fmt : str = "psql" , delim : str = "\n" , ) : if not self . _metrics_override : user_metrics = self . _infer_user_metrics ( trials , self . _infer_limit ) self . _metric_columns . update ( user_metrics ) messages = [ "== Status ==" , time_passed_str ( self . _start_time , time . time ( ) ) , memory_debug_str ( ) , * sys_info , ] if done : max_progress = None max_error = None else : max_progress = self . _max_progress_rows max_error = self . _max_error_rows current_best_trial , metric = self . _current_best_trial ( trials ) if current_best_trial : messages . append ( best_trial_str ( current_best_trial , metric , self . _parameter_columns ) ) if has_verbosity ( Verbosity . V1_EXPERIMENT ) : messages . append ( trial_progress_str ( trials , metric_columns = self . _metric_columns , parameter_columns = self . _parameter_columns , total_samples = self . _total_samples , force_table = self . _print_intermediate_tables , fmt = fmt , max_rows = max_progress , done = done , metric = self . _metric , mode = self . _mode , sort_by_metric = self . _sort_by_metric , ) ) messages . append ( trial_errors_str ( trials , fmt = fmt , max_rows = max_error ) ) return delim . join ( messages ) + delim
Returns full progress string.
Returns full progress string .
"""Returns full progress string.

        This string contains a progress table and error table. The progress
        table describes the progress of each trial. The error table lists
        the error file, if any, corresponding to each trial. The latter only
        exists if errors have occurred.

        Args:
            trials: Trials to report on.
            done: Whether this is the last progress report attempt.
            fmt: Table format. See `tablefmt` in tabulate API.
            delim: Delimiter between messages.
        """ # Will filter the table in `trial_progress_str`
self
trials
List[Trial]
Trials to report on.
Trials to report on .
done
bool
Whether this is the last progress report attempt.
Whether this is the last progress report attempt .
sys_info
Dict
fmt
str
Table format. See `tablefmt` in tabulate API.
Table format . See ` tablefmt ` in tabulate API .
delim
str
Delimiter between messages.
Delimiter between messages .