3D CNN target vector

I have created a 3D CNN in MATLAB 201a.
My 3D - input size is 16x1280x3x42662 - height x width x depth x n:of observations. My target vector is a categorical array of size: 42662x1.
While I train, I get an error: "Number of observations in X and Y disagree." Can someone please help me on where I am going wrong.
Thanks for your time and help.

5 Comments

KSSV
KSSV on 8 Aug 2019
Huumh.....the trainNetwork is pretty confusing thing. Are you folloiwng the below link?
Venkat
Venkat on 8 Aug 2019
Yes, I am.
Is the network's output size "42662x1" excluding the number of observations?
I have the same problem, someone know how to fix it. Please!
cl h
cl h on 14 Nov 2019
modify u train set, size 16x1280x3x1x42662, train data should be 4D,not 3D

Sign in to comment.

Answers (0)

Categories

Asked:

on 8 Aug 2019

Commented:

on 14 Nov 2019

Community Treasure Hunt

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

Start Hunting!