Is there a way to calculate the total number of parameters in a LSTM network.
I have found a example but I\'m unsure of how correct this is or If I have understood i
The others have pretty much answered it. But just for further clarification, on creating an LSTM layer. The number of params is as follows:
No of params= 4*((num_features used+1)*num_units+ num_units^2)
The +1 is because of the additional bias we take.
Where the num_features is the num_features in your input shape to the LSTM: Input_shape=(window_size,num_features)