Invalid training data. Sequence responses must have the same sequence length as the corresponding predictors.
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Igor Lisogurski
il 29 Dic 2021
Commentato: yanqi liu
il 26 Gen 2022
Hi , I have a simple regression NN for time sequences .
Got an error when training the network : "Invalid training data. Sequence responses must have the same sequence length as the corresponding predictors. " . While my XTrain data is a cell array dim(Nx1) of sequences dim(1x10) and YTrain data is cell array dim(Nx1) of sequences sim(1x1) ...Please advise why the response sequences need to be the same length as the predictors ?
Architecture of the network :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/847110/image.jpeg)
0 Commenti
Risposta accettata
yanqi liu
il 30 Dic 2021
yes,sir,may be set sequenceInputLayer to
sequenceInputLayer(10, ……)
to match the input data,1*10 dimension
6 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!