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)

Answers (1)

Walter Roberson
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.

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!