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

1 回表示 (過去 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 Center および File ExchangeDeep Learning Toolbox についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by