Neural Network input error

Illustration
Gaseb-alotibi - 2021-05-31T12:30:27+00:00
Question: Neural Network input error

i have a table of input 30 rows* 9 columne and target table 30*1   i tried to run newff as below net=feedforwardnet(1) [tr,net]=train(net,input,target)   but it does not work because of an error below Error using network/train (line 340) Number of inputs does not match net.numInputs.  

Expert Answer

Profile picture of John Michell John Michell answered . 2025-11-20

input and target matrices should have the same number of columns
 
 
 [ I N ] = size(input)
 [ O N ] = size(target)


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!