Output size of a regression layer

I'm trying to work on a regression problem from a 200-element vector to an 11-element vector. I have 100,000 observations so I organized my X training data into [1,200,1,100000] and YTrain [100000,11], which I hope is correct. My networ structure is as follows:
net.png
However, when I tried to train, an error appeared saying "
Error using trainNetwork (line 165)
Invalid training data. The output size (100) of the last layer does not match the number of responses (11).
"
The last FC layer I used has output dimension of 11, which matches my output size. So my question is, how do I make the output size of the network matching my data? I feel I did it correctly but clearly I didn't...

1 Comment

I am having a similar problem. The final FC layer has an output dimension equal to the number of responses in my training set, but I am getting a very similar error. I'm trying to figure it out, but would love more clear direction in doing so.

Sign in to comment.

Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 2 Apr 2019

Commented:

on 11 Oct 2019

Community Treasure Hunt

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

Start Hunting!