Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
2108f0ca
Commit
2108f0ca
authored
2 years ago
by
ogueler@idiap.ch
Browse files
Options
Downloads
Patches
Plain Diff
added another check
parent
69f3c2bd
No related branches found
No related tags found
1 merge request
!3
Lowest validation loss
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ptbench/engine/trainer.py
+4
-1
4 additions, 1 deletion
src/ptbench/engine/trainer.py
tests/test_cli.py
+2
-1
2 additions, 1 deletion
tests/test_cli.py
with
6 additions
and
2 deletions
src/ptbench/engine/trainer.py
+
4
−
1
View file @
2108f0ca
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tests/test_cli.py
+
2
−
1
View file @
2108f0ca
...
...
@@ -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
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment