Im following a tutorial on how to predict stock prices with tensor flow. but everytime i run my script i keep getting a shape error
Traceback (most recent call last):
File "main.py", line 38, in <module>
model.add(LSTM(units=50, return_sequences=True, input_shape=(x_train.shape[1], 1)))
AttributeError: 'list' object has no attribute 'shape'
I know here on stackoverflow are some similiar answers to this question but to be honest im new to ML so i cant make much sense of the answers given.
The full code is here: https://pastebin.ubuntu.com/p/c4mDKNF3hp/