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
683ba759
Commit
683ba759
authored
4 years ago
by
leufen1
Browse files
Options
Downloads
Patches
Plain Diff
added how to plugin custom model to docs too
parent
319a0af9
No related branches found
No related tags found
4 merge requests
!156
include current development into release
,
!155
Resolve "new release v0.12.1"
,
!152
Resolve "Update README HPC setup"
,
!139
Draft: Resolve "KZ filter"
Pipeline
#46322
passed
4 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
docs/_source/customise.rst
+14
-0
14 additions, 0 deletions
docs/_source/customise.rst
with
15 additions
and
1 deletion
README.md
+
1
−
1
View file @
683ba759
...
@@ -308,7 +308,7 @@ class MyCustomisedModel(AbstractModelClass):
...
@@ -308,7 +308,7 @@ class MyCustomisedModel(AbstractModelClass):
self.compile_options = {"optimizer" = keras.optimizers.Adam()}
self.compile_options = {"optimizer" = keras.optimizers.Adam()}
```
```
##
#
How to plug in the customised model into the workflow?
## How to plug in the customised model into the workflow?
*
Make use of the
`model`
argument and pass
`MyCustomisedModel`
when instantiating a workflow.
*
Make use of the
`model`
argument and pass
`MyCustomisedModel`
when instantiating a workflow.
```
python
```
python
from
mlair.workflows
import
DefaultWorkflow
from
mlair.workflows
import
DefaultWorkflow
...
...
This diff is collapsed.
Click to expand it.
docs/_source/customise.rst
+
14
−
0
View file @
683ba759
...
@@ -143,6 +143,20 @@ How to create a customised model?
...
@@ -143,6 +143,20 @@ How to create a customised model?
self.compile_options = {"optimizer" = keras.optimizers.Adam()}
self.compile_options = {"optimizer" = keras.optimizers.Adam()}
How to plug in the customised model into the workflow?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Make use of the :py:`model` argument and pass :py:`MyCustomisedModel` when instantiating a workflow.
.. code-block:: python
from mlair.workflows import DefaultWorkflow
workflow = DefaultWorkflow(model=MyCustomisedModel)
workflow.run()
Specials for Branched Models
Specials for Branched Models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
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