I am trying to train ANN and it gives following error:Input data size does not match net.inputs{1}.size...Someone plz help me. Its been days correcting the error
조회 수: 1 (최근 30일)
이전 댓글 표시
net10 = newff([0 1;0 1;1 6],[5 2],{'tansig' 'purelin'});
net10.trainParam.epochs = 50;
net10.trainParam.goal=0;
net10 = train(net10,p,t);
Y = sim(net10,p);
e=t-Y;
plot(p,t,p,Y,'o')
댓글 수: 0
채택된 답변
Israr Haq
2019년 1월 15일
Hello.
Seems like dimensions of net10 and p are not the same. They must be the same before simulating the network.
추가 답변 (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!