LSTM number of units

When we add an LSTM layer, the first parameter is the number of units. How is it decided? Is it a hyperparameter? Or some maths is involved that i am missing?

hey @ambika11 ,
yeah , you got it right , it is a hyperparameter and you need to get the correct one ,based on your dataset.

Although most of the times it found nearby the value of input shape.

have a look at this. Maybe it be a bit of help for you.

I hope it helps you .
Thank You :slightly_smiling_face:.