Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Matt Harvey
five-video-classification-methods
Commits
1d5e2c5b
Commit
1d5e2c5b
authored
7 years ago
by
Matt Harvey
Browse files
Options
Download
Email Patches
Plain Diff
Update LSTM network.
parent
47fc0a4d
master
add-demo-script
github/fork/Anner-deJong/patch-2
github/fork/ideaRunner/edit_move_file
github/fork/ikvision/master
github/fork/mertia-himanshu/master
github/fork/prabindh/master
github/fork/sanshibayuan/master
playground
playground-add-synthetic
v1.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models.py
+2
-2
models.py
with
2 additions
and
2 deletions
+2
-2
models.py
+
2
-
2
View file @
1d5e2c5b
...
...
@@ -71,10 +71,10 @@ class ResearchModels():
our CNN to this model predomenently."""
# Model.
model
=
Sequential
()
model
.
add
(
LSTM
(
25
6
,
return_sequences
=
True
,
input_shape
=
self
.
input_shape
,
model
.
add
(
LSTM
(
409
6
,
return_sequences
=
True
,
input_shape
=
self
.
input_shape
,
dropout_W
=
0.5
,
dropout_U
=
0.5
))
model
.
add
(
Flatten
())
model
.
add
(
Dense
(
512
,
activation
=
'relu'
))
model
.
add
(
Dense
(
1024
,
activation
=
'relu'
))
model
.
add
(
Dropout
(
0.5
))
model
.
add
(
Dense
(
self
.
nb_classes
,
activation
=
'softmax'
))
...
...
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
Menu
Explore
Projects
Groups
Snippets