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
93fa64b0
Commit
93fa64b0
authored
Jul 13, 2020
by
lucas_miranda
Browse files
Modified LSTMs to work with cuDNN implementation
parent
f6d81b94
Changes
1
Hide whitespace changes
Inline
Side-by-side
model_training.py
View file @
93fa64b0
...
...
@@ -384,9 +384,6 @@ if runs > 1:
for
run
in
range
(
runs
):
# To avoid stability issues
tf
.
keras
.
backend
.
clear_session
()
run_ID
=
"{}{}{}{}{}{}_{}"
.
format
(
(
"GMVAE"
if
variational
else
"AE"
),
(
"P"
if
predictor
>
0
and
variational
else
""
),
...
...
@@ -505,6 +502,9 @@ for run in range(runs):
grouper
.
predict
(
input_dict_train
[
input_type
]),
axis
=
1
)
# To avoid stability issues
tf
.
keras
.
backend
.
clear_session
()
# If specified (-s > 1), saves the resulting groupings to a dataframe on disk
if
runs
>
1
:
clust_assignments
=
pd
.
DataFrame
(
clust_assignments
)
...
...
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