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
e0f2649b
"...easybuild-repository-public-release.git" did not exist on "b3f961f3a55fbaba815a0bcd91075e12777151b4"
Commit
e0f2649b
authored
4 years ago
by
Felix Kleinert
Browse files
Options
Downloads
Patches
Plain Diff
clean up model setup
parent
33e294b0
Branches
Branches containing commit
Tags
v2.0.0
Tags containing commit
3 merge requests
!125
Release v0.10.0
,
!124
Update Master to new version v0.10.0
,
!92
introduce 'compile_options' in model_class which combines all allowed args of...
Pipeline
#36808
passed
4 years ago
Stage: test
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/run_modules/model_setup.py
+4
-3
4 additions, 3 deletions
src/run_modules/model_setup.py
with
4 additions
and
3 deletions
src/run_modules/model_setup.py
+
4
−
3
View file @
e0f2649b
...
@@ -60,10 +60,11 @@ class ModelSetup(RunEnvironment):
...
@@ -60,10 +60,11 @@ class ModelSetup(RunEnvironment):
self
.
data_store
.
set
(
"
channels
"
,
channels
,
self
.
scope
)
self
.
data_store
.
set
(
"
channels
"
,
channels
,
self
.
scope
)
def
compile_model
(
self
):
def
compile_model
(
self
):
# optimizer = self.data_store.get("optimizer", self.scope)
"""
# loss = self.model.loss
Compiles the keras model. Compile options are mandetory and have to be set by implementing set_compile() method
in child class of AbstractModelClass.
"""
compile_options
=
self
.
model
.
compile_options
compile_options
=
self
.
model
.
compile_options
# self.model.compile(optimizer=optimizer, loss=loss, **compile_options)
self
.
model
.
compile
(
**
compile_options
)
self
.
model
.
compile
(
**
compile_options
)
self
.
data_store
.
set
(
"
model
"
,
self
.
model
,
self
.
scope
)
self
.
data_store
.
set
(
"
model
"
,
self
.
model
,
self
.
scope
)
...
...
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