Error when training neural network with multi feature inputs
21 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mathieu Chêne
am 7 Mär. 2022
Kommentiert: YOUNGWOO AN
am 14 Feb. 2024
Hi,
I am currently working on a project in which I use a neural network with 3 feature inputs. The first one (localPosScore) is a 1x9 vectors and the others (msgX) are 1x7 vectors :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/917154/image.png)
I create an arrayDatastore from a cell array with my training datas and the read function gives me this result :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/917159/image.png)
However when I use the trainNetwork function the command answers me this error
Error using trainNetwork (line 184)
Input datastore returned more than one observation per row for network input 1.
I don't where I miss something because when I read the trainNetwork's help page I have a cell array of {numInputs+1} elements with a categorical label.
May you help me to solve this probem ?
Thanks in advance
Mathieu
2 Kommentare
chechezhe Chen
am 29 Jun. 2022
https://www.mathworks.com/support/search.html/answers/1587899-how-to-create-a-datastore-for-using-the-deep-network-designer-app.html?fq[]=asset_type_name:answer&fq[]=category:deeplearning/deep-learning-with-time-series-sequences-and-text&page=1
Akzeptierte Antwort
Prince Kumar
am 31 Mär. 2022
Hi,
Please refer to the following answers:
- https://www.mathworks.com/matlabcentral/answers/522086-how-can-i-train-multi-input-deep-network-without-datastore
- https://www.mathworks.com/matlabcentral/answers/489864-how-to-train-deep-learning-network-with-multi-inputs
Hope this helps!!
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!