Invalid training data. for network with 1 inputs and 1 output, datastore read function function must return a cell array with 2 columns but it returns cell array with 1 column
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Data download site:https://pan.baidu.com/s/1OaKOuiMXwoJLpkYDi0ttkw?pwd=4cn4
magnet:?xt=urn:btih:LL35GT5QWVBTRRZIEM5DBFNF4TP5O45K&xt=urn:btmh:12205a3dc93e586eb3df689d7bd516813b193d205c908397dad455ee2f003ca8b1cc&dn=data2.rar&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&xl=99906406
I have labeled signal set containing signal and label data.I created a signaldatastore,sigdata, containing signal member data, and a datastore, lbldata, containing label data from labels specified in the string array lblnames.
lbls = getLabelNames(DataX);
[sgd,lbd] = createDatastores(DataX,lbls)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1521691/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1521696/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1521701/image.png)
And then used it as input argument for DeepNetworkDesigner app and use the lstm as trainmodel.
I got the following error during training:Invalid training data. for network with 1 inputs and 1 output, datastore read function function must return a cell array with 2 columns but it returns cell array with 1 column.
How to resolve this issue?
0 comentarios
Respuestas (1)
Venu
el 17 de Dic. de 2023
To resolve the issue you are facing, you need to make sure that the data returned by your datastore's read function matches the expected format for training with the LSTM model.
You can refer to these 2 MATLAB Answers:
Hope this helps!
0 comentarios
Ver también
Categorías
Más información sobre AI for Signals en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!