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
26a21aa0
Commit
26a21aa0
authored
Jul 24, 2020
by
lucas_miranda
Browse files
Implemented 1 cycle learning rate schedule
parent
f7468519
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/model_utils.py
View file @
26a21aa0
...
...
@@ -335,6 +335,8 @@ class Entropy_regulariser(Layer):
def
call
(
self
,
z
,
**
kwargs
):
# axis=1 increases the entropy of a cluster across instances
# axis=0 increases the entropy of the assignment for a given instance
entropy
=
K
.
sum
(
tf
.
multiply
(
z
+
1e-5
,
tf
.
math
.
log
(
z
)
+
1e-5
),
axis
=
1
)
# Adds metric that monitors dead neurons in the latent space
...
...
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