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
7aaa0341
Commit
7aaa0341
authored
Dec 03, 2020
by
lucas_miranda
Browse files
Added encoding size as a CL parameter in train_model.py
parent
375a5b70
Pipeline
#88512
passed with stage
in 19 minutes and 52 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deepof/models.py
View file @
7aaa0341
...
...
@@ -586,7 +586,7 @@ class SEQ_2_SEQ_GMVAE:
tfd
.
Independent
(
tfd
.
Normal
(
loc
=
gauss
[
1
][...,
:
self
.
ENCODING
,
k
],
scale
=
softplus
(
gauss
[
1
][...,
self
.
ENCODING
:,
k
]),
scale
=
softplus
(
gauss
[
1
][...,
self
.
ENCODING
:,
k
]),
),
reinterpreted_batch_ndims
=
1
,
)
...
...
deepof/train_model.py
View file @
7aaa0341
...
...
@@ -413,7 +413,9 @@ if not tune:
callbacks
=
callbacks_
,
)
gmvaep
.
save_weights
(
"{}_final_weights.h5"
.
format
(
run_ID
))
gmvaep
.
save_weights
(
"GMVAE_loss={}_encoding={}_final_weights.h5"
.
format
(
loss
,
encoding_size
)
)
# To avoid stability issues
tf
.
keras
.
backend
.
clear_session
()
...
...
deepof/train_utils.py
View file @
7aaa0341
...
...
@@ -239,4 +239,4 @@ def tune_search(
print
(
tuner
.
results_summary
())
return
best_hparams
,
best_run
\ No newline at end of file
return
best_hparams
,
best_run
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