Invalid training data. The output size (12) of the last layer does not match the number of classes of the responses (5).
2 views (last 30 days)
Show older comments
0 Comments
Answers (1)
Walter Roberson
on 19 Apr 2022
Your numClasses is 12, but your imdsTrain only contains examples of 5 different classes. Your training data needs to include examples of all input classes.
0 Comments
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!