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
305b1aba
Commit
305b1aba
authored
Nov 20, 2020
by
lucas_miranda
Browse files
Refactored a bit the old visualization pipeline - added umap-learn to requirements
parent
e99ef7a8
Pipeline
#87253
passed with stage
in 16 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deepof/requirements.txt
View file @
305b1aba
...
...
@@ -20,4 +20,4 @@ sklearn~=0.0
tensorflow-probability~=0.10.0
tensorflow~=2.2.0
tqdm~=4.50.0
umap~=0.
1.1
umap
-learn
~=0.
4.6
examples/visualizations/train_viz_data_generator.py
View file @
305b1aba
...
...
@@ -265,6 +265,22 @@ if not val_num:
"Set a valid data path / validation number for the validation to run"
)
# Load checkpoints and build dataframe with predictions
path
=
checkpoints
checkpoints
=
sorted
(
list
(
set
(
[
path
+
re
.
findall
(
'(.*\.ckpt).data'
,
i
)[
0
]
for
i
in
os
.
listdir
(
path
)
if
"ckpt.data"
in
i
]
)
)
)
assert
len
(
checkpoints
)
>=
1
,
"Please provide a valid checkpoint path!"
assert
input_type
in
[
"coords"
,
"dists"
,
...
...
@@ -348,21 +364,6 @@ if pheno_class > 0:
print
(
"Done!"
)
# Load checkpoints and build dataframe with predictions
path
=
checkpoints
checkpoints
=
sorted
(
list
(
set
(
[
path
+
re
.
findall
(
'(.*\.ckpt).data'
,
i
)[
0
]
for
i
in
os
.
listdir
(
path
)
if
"ckpt.data"
in
i
]
)
)
)
pttest_idx
=
np
.
random
.
choice
(
list
(
range
(
X_train
.
shape
[
0
])),
samples
)
pttest
=
X_train
[
pttest_idx
]
...
...
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