(metrics, n_decimals=5)
return ", ".join(str_l)
Create a custom string with metrics.

        Parameters
        ----------
        metrics : dict
            Keys represent names and the

        n_decimals : int
            Number of decimals to display.

        Returns
        -------
        formatted : str
            Nicely formatted string to be appended to the progress bar.
Create a custom string with metrics.
Create a custom string with metrics .
def create_custom_postfix_str(metrics, n_decimals=5):
        """Create a custom string with metrics.

        Parameters
        ----------
        metrics : dict
            Keys represent names and the

        n_decimals : int
            Number of decimals to display.

        Returns
        -------
        formatted : str
            Nicely formatted string to be appended to the progress bar.

        """
        fmt_str = "{}={:." + str(n_decimals) + "f}"
        str_l = [fmt_str.format(k, v) for k, v in metrics.items()]

        return ", ".join(str_l)
def create_custom_postfix_str ( metrics , n_decimals = 5 ) : fmt_str = "{}={:." + str ( n_decimals ) + "f}" str_l = [ fmt_str . format ( k , v ) for k , v in metrics . items ( ) ] return ", " . join ( str_l )