Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MLAir
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
toar
MLAir
Commits
1fb90fd3
Commit
1fb90fd3
authored
Nov 05, 2020
by
lukas leufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test update
parent
c3bca050
Pipeline
#51132
passed with stages
in 8 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test/test_run_modules/test_training.py
test/test_run_modules/test_training.py
+4
-2
No files found.
test/test_run_modules/test_training.py
View file @
1fb90fd3
...
...
@@ -61,7 +61,8 @@ class TestTraining:
obj
.
data_store
.
set
(
"data_collection"
,
mock
.
MagicMock
(
return_value
=
"mock_train_gen"
),
"general.train"
)
obj
.
data_store
.
set
(
"data_collection"
,
mock
.
MagicMock
(
return_value
=
"mock_val_gen"
),
"general.val"
)
obj
.
data_store
.
set
(
"data_collection"
,
mock
.
MagicMock
(
return_value
=
"mock_test_gen"
),
"general.test"
)
os
.
makedirs
(
path
)
if
not
os
.
path
.
exists
(
path
):
os
.
makedirs
(
path
)
obj
.
data_store
.
set
(
"experiment_path"
,
path
,
"general"
)
os
.
makedirs
(
batch_path
)
obj
.
data_store
.
set
(
"batch_path"
,
batch_path
,
"general"
)
...
...
@@ -170,7 +171,8 @@ class TestTraining:
@
pytest
.
fixture
def
ready_to_init
(
self
,
data_collection
,
model
,
callbacks
,
path
,
model_path
,
batch_path
):
os
.
makedirs
(
path
)
if
not
os
.
path
.
exists
(
path
):
os
.
makedirs
(
path
)
os
.
makedirs
(
model_path
)
obj
=
RunEnvironment
()
obj
.
data_store
.
set
(
"data_collection"
,
data_collection
,
"general.train"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment