Implementing Many to One RNN in Keras
up vote
0
down vote
favorite
I have a model with multiple SimpleRNNs. I need to pass the context of first RNN and second input to the second RNN, then the context of this RNN(second one) along with third input to third RNN and so on.
i.e
input1 + nothing -> SimpleRNN(hidden1)
input2 + hidden1 -> SimpleRNN(hidden2)
input3 + hidden2 -> SimpleRNN(hidden3)
How can I do this in keras? I am using functional API.
rnn many-to-one keras-layer
add a comment |
up vote
0
down vote
favorite
I have a model with multiple SimpleRNNs. I need to pass the context of first RNN and second input to the second RNN, then the context of this RNN(second one) along with third input to third RNN and so on.
i.e
input1 + nothing -> SimpleRNN(hidden1)
input2 + hidden1 -> SimpleRNN(hidden2)
input3 + hidden2 -> SimpleRNN(hidden3)
How can I do this in keras? I am using functional API.
rnn many-to-one keras-layer
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a model with multiple SimpleRNNs. I need to pass the context of first RNN and second input to the second RNN, then the context of this RNN(second one) along with third input to third RNN and so on.
i.e
input1 + nothing -> SimpleRNN(hidden1)
input2 + hidden1 -> SimpleRNN(hidden2)
input3 + hidden2 -> SimpleRNN(hidden3)
How can I do this in keras? I am using functional API.
rnn many-to-one keras-layer
I have a model with multiple SimpleRNNs. I need to pass the context of first RNN and second input to the second RNN, then the context of this RNN(second one) along with third input to third RNN and so on.
i.e
input1 + nothing -> SimpleRNN(hidden1)
input2 + hidden1 -> SimpleRNN(hidden2)
input3 + hidden2 -> SimpleRNN(hidden3)
How can I do this in keras? I am using functional API.
rnn many-to-one keras-layer
rnn many-to-one keras-layer
asked 18 hours ago
yamini goel
297
297
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236946%2fimplementing-many-to-one-rnn-in-keras%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password