Error using trainNetwork. Number of observations in X and Y disagree.

조회 수: 6 (최근 30일)
Radians
Radians 2020년 2월 5일
답변: Divya Gaddipati 2020년 2월 10일
Hi,
Capture.PNG
'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.
img.jpg
Please help.
Thanks

답변 (1개)

Divya Gaddipati
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!

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by