Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
esde
machine-learning
MLAir
Commits
95b71422
Commit
95b71422
authored
4 years ago
by
lukas leufen
Browse files
Options
Downloads
Patches
Plain Diff
test for save model was still erroneous
parent
bc989d62
No related branches found
No related tags found
3 merge requests
!125
Release v0.10.0
,
!124
Update Master to new version v0.10.0
,
!101
Resolve "model folder in experiment"
Pipeline
#39302
passed
4 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_modules/test_training.py
+4
-4
4 additions, 4 deletions
test/test_modules/test_training.py
with
4 additions
and
4 deletions
test/test_modules/test_training.py
+
4
−
4
View file @
95b71422
...
...
@@ -205,14 +205,14 @@ class TestTraining:
assert
ready_to_train
.
model
.
history
.
epoch
==
[
0
,
1
]
assert
len
(
glob
.
glob
(
os
.
path
.
join
(
path
,
"
plots
"
,
"
TestExperiment_history_*.pdf
"
)))
==
2
def
test_save_model
(
self
,
init_without_run
,
path
,
caplog
):
def
test_save_model
(
self
,
init_without_run
,
model_
path
,
caplog
):
caplog
.
set_level
(
logging
.
DEBUG
)
model_name
=
"
test_model.h5
"
assert
model_name
not
in
os
.
listdir
(
path
)
assert
model_name
not
in
os
.
listdir
(
model_
path
)
init_without_run
.
save_model
()
message
=
PyTestRegex
(
f
"
save best model to
{
os
.
path
.
join
(
path
,
model_name
)
}
"
)
message
=
PyTestRegex
(
f
"
save best model to
{
os
.
path
.
join
(
model_
path
,
model_name
)
}
"
)
assert
caplog
.
record_tuples
[
1
]
==
(
"
root
"
,
10
,
message
)
assert
model_name
in
os
.
listdir
(
path
)
assert
model_name
in
os
.
listdir
(
model_
path
)
def
test_load_best_model_no_weights
(
self
,
init_without_run
,
caplog
):
caplog
.
set_level
(
logging
.
DEBUG
)
...
...
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