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

Ryan  Coatney
Ryan Coatney 2019년 10월 11일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2019년 4월 2일

댓글:

2019년 10월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by