Error using trainNetwork. Number of observations in X and Y disagree.
20 views (last 30 days)
Divya Gaddipati on 10 Feb 2020
The size of the output of your network should be equal the size of Y (labels).
You can refer to the following link for a simple example on building deep neural networks in MATLAB, which you can modify according to your problem:
Make sure to change the input layer and output layer sizes according to your inputs and outputs.
Hope this helps!