Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lucas Miranda
deepOF
Commits
7c5899dd
Commit
7c5899dd
authored
Apr 27, 2021
by
lucas_miranda
Browse files
Added number of populated clusters as a training metric
parent
9adbeaf5
Pipeline
#100368
passed with stages
in 23 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
deepof/model_utils.py
View file @
7c5899dd
...
...
@@ -285,6 +285,11 @@ class neighbor_latent_entropy(tf.keras.callbacks.Callback):
writer
=
tf
.
summary
.
create_file_writer
(
self
.
log_dir
)
with
writer
.
as_default
():
tf
.
summary
.
scalar
(
"number_of_populated_clusters"
,
data
=
len
(
set
(
hard_groups
)),
step
=
epoch
,
)
tf
.
summary
.
scalar
(
"average_neighborhood_cluster_entropy"
,
data
=
np
.
average
(
purity_vector
,
weights
=
max_groups
[
random_idxs
]),
...
...
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