Invalid training data in LSTM
2 ビュー (過去 30 日間)
古いコメントを表示
swetha annangi
2020 年 1 月 24 日
コメント済み: swetha annangi
2020 年 1 月 28 日
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.
0 件のコメント
採用された回答
Harsha Priya Daggubati
2020 年 1 月 27 日
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!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!