![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/757724/image.png)
My training data is in a cell array whilst my labels are a categorical array although I still get invalid training data error
조회 수: 6 (최근 30일)
이전 댓글 표시
I am trying to experiment with our CNN structure using a sequence input, with a dataset of 360x1 cell consisting of 64x769 arrays
64 = Channels
Dataset:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/746304/image.png)
And this is our label data in a categorical array:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/746309/image.png)
and this is the error I am getting
Error using trainNetwork (line 184)
Invalid training data. Responses must be a cell array of categorical response sequences.
Although I am using a categorical array it still outputs this error which is very confusing.
댓글 수: 0
채택된 답변
Anshika Chaurasia
2021년 10월 4일
Hi,
As mention in error: Responses should be cell array of categorical datatype. Hence, the response should like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/757724/image.png)
For more information refer to following documentations:
댓글 수: 0
추가 답변 (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!