Skip to content
GitLab
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
dc2d2e9a
Commit
dc2d2e9a
authored
May 28, 2021
by
lucas_miranda
Browse files
Replaced for loop with vectorised mapping on ClusterOverlap regularization layer
parent
0d79da7f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
deepof/model_utils.py
View file @
dc2d2e9a
...
...
@@ -564,6 +564,6 @@ class ClusterOverlap(Layer):
# minimize local entropy
self
.
add_loss
(
self
.
loss_weight
*
tf
.
reduce_mean
(
neighbourhood_entropy
))
# maximize number of clusters
self
.
add_loss
(
-
self
.
loss_weight
*
tf
.
reduce_mean
(
number_of_clusters
))
#
self.add_loss(-self.loss_weight * tf.reduce_mean(number_of_clusters))
return
encodings
supplementary_notebooks/deepof_explore_model_stability.ipynb
View file @
dc2d2e9a
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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