(self, epoch=None)
Print nicely the internal database.

        Parameters
        ----------
        epoch : int or None
            If epoch given, then a results only over this epoch. If epoch is `None` then print results over all epochs.
Print nicely the internal database.
Print nicely the internal database .
def pretty_print(self, epoch=None):
        """Print nicely the internal database.

        Parameters
        ----------
        epoch : int or None
            If epoch given, then a results only over this epoch. If epoch is `None` then print results over all epochs.

        """
        if epoch is None:
            df = self.metrics

        else:
            df = self.metrics_per_epoch(epoch)
        pd.options.display.float_format = '{:,.3f}'.format
        print(df.groupby(['model', 'metric', 'epoch', 'dataloader'])['value'].mean().to_string())
def pretty_print ( self , epoch = None ) : if epoch is None : df = self . metrics else : df = self . metrics_per_epoch ( epoch ) pd . options . display . float_format = '{:,.3f}' . format print ( df . groupby ( [ 'model' , 'metric' , 'epoch' , 'dataloader' ] ) [ 'value' ] . mean ( ) . to_string ( ) )