def METHOD_NAME(self):
    """Log loss and other metrics values after each epoch"""
    def _is_float(x):
        try:
            float(x)
            return True
        except (ValueError, TypeError):
            return False
    # Do not record in case of predicting
    if hasattr(self, "lr_finder") or hasattr(self, "gather_preds"):
        return
    # Remove non-float metrics and record the rest.
    metrics = self.recorder.log
    metrics = {k: v for k, v in zip(self.recorder.metric_names, metrics) if _is_float(v)}
    self.metrics_logger.record_metrics(metrics, step=metrics["epoch"])