Skip to content

Conversation

JShi12
Copy link

@JShi12 JShi12 commented Jun 18, 2025

The shape of RNN and LSTM layer is (batch_size, timesteps, features), where timesteps = how many past values you use (the window size) and features = how many features you have at each timestep. In this case, we have one feature (close price) and the window is a sequence in time, so I think the input_shape should be (window_size, 1) instead of (1, window_size).

… to (window_size,1) and corresponding data shapes."
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

Successfully merging this pull request may close these issues.

1 participant