Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSTM stateful? #1168

Open
Lukas3226 opened this issue May 25, 2022 · 0 comments
Open

LSTM stateful? #1168

Lukas3226 opened this issue May 25, 2022 · 0 comments

Comments

@Lukas3226
Copy link

In keras, there is the option to specify whether the lstm is stateful and the next batch continues the previous sequence or not.

How are the lstm in tflearn handelt?

When I start prediction with data of shape (1, 1, 10) and pass afterwards new data of shape (1, 1, 10), will the lstm take this as (1, 2, 10) data and continue the sequence or does it take it as passing (2, 1, 10) and think it is a new training sequence with timesteps 1.

I'm in a reinforcement setting and can only pass my time series one timestep at a time, so I need to know if I can achieve this using tflearn or if I need to keep track of the state of the lstm.
Also, keras requires the initial_state during calling the lstm, not at creation. This also seems to not be the case here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant