Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Miranda
deepOF
Commits
0210c812
Commit
0210c812
authored
Jun 04, 2020
by
lucas_miranda
Browse files
Implemented KL and MMD warmup on SEQ2SEQ_VAEP in models.py
parent
942674c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/models.py
View file @
0210c812
...
...
@@ -383,6 +383,10 @@ class SEQ_2_SEQ_VAEP:
self
.
kl_warmup
=
kl_warmup_epochs
self
.
mmd_warmup
=
mmd_warmup_epochs
assert
(
"ELBO"
in
self
.
loss
or
"MMD"
in
self
.
loss
),
"loss must be one of ELBO, MMD or ELBO+MMD (default)"
def
build
(
self
):
# Encoder Layers
Model_E0
=
tf
.
keras
.
layers
.
Conv1D
(
...
...
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