if epoch % 10 == 0: print(f'Epoch {epoch + 1}/{epochs} - Loss: {avg_epoch_loss:.5f}, Val Loss: {val_loss:.5f}') self.early_stopping(val_loss)