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 commentaire

Ryan  Coatney
Ryan Coatney le 11 Oct 2019
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Produits

Version

R2019a

Commenté :

le 11 Oct 2019

Community Treasure Hunt

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

Start Hunting!

Translated by