Hi Gang!

I am building my first ML model in the research environment. It's an LSTM model using PyTorch. My goal is to create a model that I can feed my custom indicator values into as features.

I am asking for the community's help because I am running into some errors. I have no background in data or ML, so I am praying that someone much smarter than me can help me understand what's wrong.

Ignore main.py and the backtest! Just generic ones to allow attaching.

~~~~~~~~~~~~~~~~~~~~

The actual errors are:

[7] “input_size = X_train.shape[2]” produces“IndexError: tuple index out of range"

207062_1687271347.jpg

[8] “outputs = model(inputs)" produces“RuntimeError: For unbatched 2-D input, hx and cx should also be 2-D but got (3-D, 3-D) tensors”

207062_1687271377.jpg

~~~~~~~~~~~~~~~~~~~~

From what I've picked up, there are issues with “reshaping” and “batching," which unfortunately aren't terms I'm familiar with (my brain starts smoking whenever I see an .iloc or .flatten).

Thank y'all in advance!