Error using trainNetwork. Number of observations in X and Y disagree.
6 ビュー (過去 30 日間)
古いコメントを表示
Hi,
'X_1' is my X and 'correspondingvalues' is my Y.
basically, x is a 16*9500 (=152000) items collection of 16*16 images. Y is their labels. The following image is a drawing of the image set for better understanding.
Please help.
Thanks
0 件のコメント
回答 (1 件)
Divya Gaddipati
2020 年 2 月 10 日
Hi,
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!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!