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
870f15a2
Commit
870f15a2
authored
Apr 14, 2021
by
lucas_miranda
Browse files
Added extra branch to main autoencoder for rule_based prediction
parent
deb4f0eb
Pipeline
#98406
passed with stages
in 19 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deepof/train_utils.py
View file @
870f15a2
...
...
@@ -256,7 +256,7 @@ def tensorboard_metric_logging(
if
phenotype_prediction
:
idx
=
next
(
idx_generator
)
pheno_acc
=
tf
.
keras
.
metrics
.
binary_accuracy
(
y_val
[
idx
],
outputs
[
idx
])
pheno_acc
=
tf
.
keras
.
metrics
.
binary_accuracy
(
y_val
[
idx
],
tf
.
squeeze
(
outputs
[
idx
])
)
pheno_auc
=
tf
.
keras
.
metrics
.
AUC
()
pheno_auc
.
update_state
(
y_val
[
idx
],
outputs
[
idx
])
pheno_auc
=
pheno_auc
.
result
().
numpy
()
...
...
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