Neural Networks Input Error
1 回表示 (過去 30 日間)
古いコメントを表示
Im doing a project for school, and I have actually trained my neural network. I could test the network in the GUI using my own input values, however when I wanted to test the network on matlab workspace for example:
outputs = net(inputs1)
it gives an error of : ??? Error using ==> network.sim at 121 Number of inputs does not match net.numInputs.
I am unable to comprehend why the inputs do not match.
Can someone help?
Regards, Adriel
0 件のコメント
回答 (2 件)
Héctor Corte
2012 年 1 月 10 日
To calculate your net outputs to some inputs you should write:
outputs=sim(net,inputs1)
1 件のコメント
Greg Heath
2012 年 1 月 11 日
Although I like this format better, it is obsolete and that of the OP is correct.
Greg Heath
2012 年 1 月 11 日
I suspect that your input and /or output matrices are transposed.
For an I-H-O net the input and output matrices have the sizes
[ I N ] = size(p) % input
[ O N ] = size(t) % target
size(y) = size(t) % output
Hope this helps.
Greg
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sequence and Numeric Feature Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!