Optimizing LSTM's hyperparameters using Keras-CV

I modified the notebook and am trying to use Keras-CV in LSTM for binary classification. My X_train has the shape of (479, 11) and y_train has the shape of (479,). When I ran the code I got this error:



ValueError: Input 0 of layer sequential_227 is incompatible with the layer: expected axis -1 of input shape to have value 5 but received input with shape (None, 11)



I guess it's related to the number of features in my problem. How can I fix it?

Hi Khedr,



The error points at inappropriate dimension of the input here. You can use reshape() to play around with the dimension. Kindly share your complete code (and data files, is any) so that we can look into the exact issue. 



Thanks!