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
663a98d6
Commit
663a98d6
authored
Jul 20, 2020
by
lucas_miranda
Browse files
Early stopping now uses the overall loss function instead of the intercomponent overlap
parent
806428a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
source/model_utils.py
View file @
663a98d6
...
...
@@ -275,7 +275,7 @@ class Entropy_regulariser(Layer):
Identity layer that adds cluster weight entropy to the loss function
"""
def
__init__
(
self
,
weight
=
1.
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
weight
=
1.
0
,
*
args
,
**
kwargs
):
self
.
weight
=
weight
super
(
Entropy_regulariser
,
self
).
__init__
(
*
args
,
**
kwargs
)
...
...
source/models.py
View file @
663a98d6
...
...
@@ -173,7 +173,7 @@ class SEQ_2_SEQ_GMVAE:
number_of_components
=
1
,
predictor
=
True
,
overlap_loss
=
False
,
entropy_reg_weight
=
0
.
,
entropy_reg_weight
=
1.
0
,
):
self
.
input_shape
=
input_shape
self
.
batch_size
=
batch_size
...
...
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