Skip to content
Snippets Groups Projects
Commit 2108f0ca authored by ogueler@idiap.ch's avatar ogueler@idiap.ch
Browse files

added another check

parent 69f3c2bd
No related branches found
No related tags found
1 merge request!3Lowest validation loss
......@@ -92,9 +92,12 @@ def initialize_lowest_validation_loss(logfile_name, arguments):
# Get the values of the desired column as a list
values = [float(row[column_name]) for row in reader]
if not values:
return sys.float_info.max
lowest_value = min(values)
logger.info(
f"Found lowest validation error from previous session: {lowest_value}"
f"Found lowest validation loss from previous session: {lowest_value}"
)
return lowest_value
......
......@@ -288,7 +288,8 @@ def test_train_pasa_montgomery_from_checkpoint(temporary_basedir):
r"^Continuing from epoch 1$": 1,
r"^Saving model summary at.*$": 1,
r"^Model has.*$": 1,
r"^Saving checkpoint": 2,
r"^Found lowest validation loss from previous session.*$": 1,
r"^Saving checkpoint": 1,
r"^Total training time:": 1,
r"^Z-normalization with mean": 1,
}
......
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