Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MLAir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
MLAir
Commits
3ace6bbf
Commit
3ace6bbf
authored
3 years ago
by
lukas leufen
Browse files
Options
Downloads
Patches
Plain Diff
enumerate of layer was not proper
parent
1f11c299
No related branches found
Branches containing commit
No related tags found
Tags containing commit
6 merge requests
!430
update recent developments
,
!413
update release branch
,
!412
Resolve "release v2.0.0"
,
!390
Lukas issue362 feat branched rnn
,
!389
Lukas issue361 feat custom dense layers in rnn
,
!387
Resolve "custom dense layers in rnn"
Pipeline
#92226
passed
3 years ago
Stage: test
Stage: docs
Stage: pages
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mlair/model_modules/recurrent_networks.py
+2
-2
2 additions, 2 deletions
mlair/model_modules/recurrent_networks.py
with
2 additions
and
2 deletions
mlair/model_modules/recurrent_networks.py
+
2
−
2
View file @
3ace6bbf
...
...
@@ -139,9 +139,9 @@ class RNN(AbstractModelClass): # pragma: no cover
for
layer
,
n_hidden
in
enumerate
(
self
.
dense_layer_configuration
):
if
n_hidden
<
self
.
_output_shape
:
break
x_in
=
keras
.
layers
.
Dense
(
n_hidden
,
name
=
f
"
Dense_
{
layer
+
1
}
"
,
x_in
=
keras
.
layers
.
Dense
(
n_hidden
,
name
=
f
"
Dense_
{
len
(
conf
)
+
layer
+
1
}
"
,
kernel_initializer
=
self
.
kernel_initializer
,
)(
x_in
)
x_in
=
self
.
activation
(
name
=
f
"
{
self
.
activation_name
}
_
{
layer
+
1
}
"
)(
x_in
)
x_in
=
self
.
activation
(
name
=
f
"
{
self
.
activation_name
}
_
{
len
(
conf
)
+
layer
+
1
}
"
)(
x_in
)
if
self
.
dropout
is
not
None
:
x_in
=
self
.
dropout
(
self
.
dropout_rate
)(
x_in
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment