input lstm 1

input lstm

# LSTM layers work on 3D data with the following structure (nb_sequence, nb_timestep, nb_feature).

# nb_sequence corresponds to the total number of sequences in your dataset (or to the batch size if you are using mini-batch learning).
# nb_timestep corresponds to the size of your sequences.
# nb_feature corresponds to number of features describing each of your timesteps.

Here is what the above code is Doing:
1. We are creating a Sequential model.
2. We are adding a LSTM layer with 100 units.
3. We are adding a Dropout layer with a dropout rate of 0.2.
4. We are adding a Dense layer with 1 unit and a sigmoid activation function.

Similar Posts