필터 지우기
필터 지우기

Output data size does not match net.outputs{3}.size.

조회 수: 3 (최근 30일)
Alexandru Vasile
Alexandru Vasile 2015년 5월 24일
댓글: surya aditama 2017년 5월 3일
Hello
I have a problem with my matrix size. I've got a neural network.
Input_temp = 24 x 29 matrix ;
Target_values = 24 x 29 matrix.
[pn,minp,maxp,tn,mint,maxt]=premnmx(Input_temp,Target_temp);
NodeNum1 = 5;
NodeNum2 = 10;
TypeNum = 1;
TF1 = 'tansig';
TF2 = 'tansig';
TF3 = 'tansig';
net=newff(minmax(pn),[NodeNum1,NodeNum2,TypeNum],{TF1 TF2 TF3},'traingdx');
And i've got that error: Output data size does not match net.outputs{3}.size. Please help with a code answer.
Have a good day!!

채택된 답변

Greg Heath
Greg Heath 2015년 5월 24일
You defined 3 layers.
The last layer has only 1 node that does not match the 29 dimensional target.
Add 28 more output nodes.
Hope this helps
Thank you for formally accepting my answer
Greg
  댓글 수: 2
Alexandru Vasile
Alexandru Vasile 2015년 5월 24일
Thank you! It helped!
surya aditama
surya aditama 2017년 5월 3일
How to Add 28 more output nodes?

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

추가 답변 (0개)

카테고리

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