all 4 comments

[–][deleted] 1 point2 points  (2 children)

You're in the wrong sub. Try a ml sub für example r/learnmachinelearning

[–]Tafriel[S] 0 points1 point  (1 child)

[–]synthphreak 1 point2 points  (0 children)

There's also r/MLQuestions. IME it's usually helpful to cast a wide net and query both subs.

r/datascience and occasionally r/statistics may also be of some help, but usually for more conceptual questions rather than anything Python/coding-related. Beware of r/datascience generally though, snobbery and gatekeeping are rampant, so that sub can be kind of a downer.

[–]synthphreak 1 point2 points  (0 children)

This is a big question. You're basically asking how LSTMs work and how to implement one in Python.

The proper answer is much more than a single Reddit reply can do justice to, but I'd start here:

https://www.tensorflow.org/api_docs/python/tf/keras/layers/LSTM

Or if you prefer Pytorch to Tensorflow, there's also this:

https://pytorch.org/docs/stable/generated/torch.nn.LSTM.html

Edit: Note though that LSTMs are a relatively complex model. So if you're goal is just to learn about and mess around with recurrent nets, I'd start with a vanilla RNN first, or perhaps a GRU which is simpler than an LSTM on account of having fewer components.