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
4a99d9c8
Commit
4a99d9c8
authored
Jul 01, 2020
by
lucas_miranda
Browse files
Implemented weight saving callback in model_training.py
parent
22ffa624
Changes
1
Hide whitespace changes
Inline
Side-by-side
visualizations/train_viz_data_generator.py
View file @
4a99d9c8
...
...
@@ -348,12 +348,27 @@ dfcats = pd.concat(
],
).
reset_index
(
drop
=
True
)
dfencs
=
pd
.
concat
([
dfencs
,
dfcats
],
axis
=
1
)
dfcats_max
=
pd
.
concat
(
[
pd
.
DataFrame
(
(
[
str
(
int
(
i
))
for
i
in
np
.
random
.
uniform
(
0
,
k
,
samples
)]
if
variational
else
np
.
zeros
(
samples
)
)
),
pd
.
DataFrame
(
np
.
array
(
np
.
max
((
np
.
concatenate
(
clusters
)),
axis
=
1
),
dtype
=
str
)
),
],
).
reset_index
(
drop
=
True
)
dfencs
=
pd
.
concat
([
dfencs
,
dfcats
,
dfcats_max
],
axis
=
1
)
dfencs
[
"epoch"
]
=
np
.
array
(
[
j
+
1
for
j
in
range
(
len
(
flip_encs
))
for
i
in
range
(
len
(
flip_encs
[
0
]))]
)
dfencs
.
columns
=
[
"x"
,
"y"
,
"cluster"
,
"epoch"
]
dfencs
.
columns
=
[
"x"
,
"y"
,
"cluster"
,
"confidence"
,
"epoch"
]
dfencs
[
"trajectories"
]
=
np
.
tile
(
pttest
[:,
6
,
1
],
len
(
checkpoints
)
+
1
)
dfencs
[
"reconstructions"
]
=
np
.
concatenate
(
reconstructions
)[:,
6
,
1
]
...
...
Write
Preview
Supports
Markdown
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