How many LSTM units do I need?

How many LSTM units do I need?

The number of units in each layer of the stack can vary. For example in translate.py from Tensorflow it can be configured to 1024, 512 or virtually any number. The best range can be found via cross validation. But I have seen both 1000 and 500 number of units in each layer of the stack.

How do I choose the number of LSTM cells?

The selection of the number of hidden layers and the number of memory cells in LSTM probably depends on the application domain and context where you want to apply this LSTM. The optimal number of hidden units could be smaller than the number of inputs. AFAIK, there is no rule like multiply the number of inputs with N.

What is the number of units in a LSTM cell?

My question is on the number of units in an LSTM cell. I’ve come across the following example which is a model for predicting a value in a series based on its 2 lag observations. I’m wondering why the number of units in the LSTM cell is 100 which is much higher than the number of features.

How to calculate the number of parameters in a LSTM?

For more information refer to this article: Refer to this link if you needed some visual help: Number of parameters in an LSTM model The number of units in each layer of the stack can vary. For example in translate.py from Tensorflow it can be configured to 1024, 512 or virtually any number. The best range can be found via cross validation.

How many layers do you need to train a LSTM?

Generally, 2 layers have shown to be enough to detect more complex features. More layers can be better but also harder to train. As a general rule of thumb — 1 hidden layer work with simple problems, like this, and two are enough to find reasonably complex features.

How many cells do you need for a time series?

The longer the sequence you want to model, the more number of cells you need to have in your layer. For e.g. if you are using the LSTM to model time series data with a window of 100 data points then using just 10 cells might not be optimal.