Neural Networks Input Error

조회 수: 3 (최근 30일)
Adriel Chen
Adriel Chen 2011년 3월 7일
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

답변 (2개)

Héctor Corte
Héctor Corte 2012년 1월 10일
To calculate your net outputs to some inputs you should write:
outputs=sim(net,inputs1)
  댓글 수: 1
Greg Heath
Greg Heath 2012년 1월 11일
Although I like this format better, it is obsolete and that of the OP is correct.

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


Greg Heath
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

카테고리

Help CenterFile 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!

Translated by