Skip to content
Snippets Groups Projects
Commit 2c250995 authored by Arthur Batel's avatar Arthur Batel
Browse files

logging best epoch

parent d8885c6a
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@
# ============================================================================
import itertools as it
import logging
import numpy as np
import torch
......@@ -290,7 +291,7 @@ def learn(
else:
patience_counter += 1
if patience_counter >= patience:
print(f"Early stopping at epoch {epoch} due to no improvement in validation loss.")
logging.info(f"Early stopping at epoch {epoch} due to no improvement in validation loss.")
break # Stop training
# infer mu_beta
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment