Invalid training data in LSTM

5 visualizaciones (últimos 30 días)
swetha annangi
swetha annangi el 24 de En. de 2020
Comentada: swetha annangi el 28 de En. de 2020
I have given the following dimensions data for sequence to label classification using LSTM.....
xtrain = 56724 x 1 cell (each cell is having 1 x 2560 double)
ytrain = 56724 x 1 categorical
I am getting the following error:
Invalid training data. Predictors must be a N-by-1 cell array of sequences, where N is the number of
sequences. All sequences must have the same feature dimension and at least one time step.
Can anyone solve my issue.

Respuesta aceptada

Harsha Priya Daggubati
Harsha Priya Daggubati el 27 de En. de 2020
Hi,
The proper input format to train a LSTM Network should be as follows,
XTrain = N x 1 cell
YTrain = N x 1 , where N denotes the Number of Sequences/Training Examples.
Each cell in Training set can have variable number of columns, but a definite set of rows. It implies each cell is of the form K x L, where K is the number of input features and L is the input data for that feature.
Here in your case, I doubt there is an issue with your XTrain cell. Try modifying your XTrain to match the input format specified above.
Hope this helps!
  1 comentario
swetha annangi
swetha annangi el 28 de En. de 2020
Thank you Harsha. I verified my XTrain cells....there is a mistake in few cells. i rectified it.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by