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
e9f1e213
Commit
e9f1e213
authored
Aug 03, 2020
by
lucas_miranda
Browse files
Removed non variational autoencoder
parent
64042272
Changes
3
Hide whitespace changes
Inline
Side-by-side
main.ipynb
View file @
e9f1e213
...
...
@@ -590,7 +590,7 @@
},
{
"cell_type": "code",
"execution_count": 1
47
,
"execution_count": 1
52
,
"metadata": {},
"outputs": [
{
...
...
@@ -599,15 +599,15 @@
"text": [
"(690036, 11, 12)\n",
"(14991, 11, 12)\n",
"CPU times: user 1
3.6
s, sys: 3
41
ms, total: 1
3
.9 s\n",
"Wall time: 1
3.9
s\n"
"CPU times: user 1
6.5
s, sys: 3
96
ms, total: 1
6
.9 s\n",
"Wall time: 1
7.7
s\n"
]
}
],
"source": [
"%%time\n",
"pttest, pttrain = mtest.preprocess(window_size=11, window_step=1, filter=None, sigma=55,\n",
" shift=0, scale=
None
, align='all', shuffle=True, test_videos=1)\n",
" shift=0, scale=
'standard'
, align='all', shuffle=True, test_videos=1)\n",
"print(pttest.shape)\n",
"print(pttrain.shape)"
]
...
...
@@ -645,7 +645,7 @@
},
{
"cell_type": "code",
"execution_count": 15
0
,
"execution_count": 15
1
,
"metadata": {},
"outputs": [
{
source/model_utils.py
View file @
e9f1e213
...
...
@@ -2,7 +2,6 @@
from
itertools
import
combinations
from
tensorflow.keras
import
backend
as
K
from
sklearn.metrics
import
silhouette_score
from
tensorflow.keras.constraints
import
Constraint
from
tensorflow.keras.layers
import
Layer
import
tensorflow
as
tf
...
...
source/models.py
View file @
e9f1e213
...
...
@@ -380,7 +380,7 @@ class SEQ_2_SEQ_GMVAE:
)(
z
)
# Identity layer controlling clustering and latent space statistics
z
=
Dead_neuron_control
(
loss
=
self
.
overlap_loss
)(
z
,
z_gauss
,
z_cat
)
z
=
Dead_neuron_control
()(
z
,
z_gauss
,
z_cat
)
# Define and instantiate generator
generator
=
Model_D1
(
z
)
...
...
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