MATLAB CODE FOR ANN is not producing the desired output,program code is given .
이전 댓글 표시
inputs = [31 9650.00 3300.00 4350.00]; targets = [11 21 31 51];
hiddenLayerSize = 20; net = fitnet(hiddenLayerSize);
net.divideFcn = 'dividerand'; net.divideMode = 'sample'; net.divideParam.trainRatio = 70/100; net.divideParam.valRatio = 15/100; net.divideParam.testRatio = 15/100;
net.trainFcn = 'trainlm'; net.performFcn = 'mse';
net.plotFcns = {'plotperform','plottrainstate','ploterrhist', ... 'plotregression', 'plotfit'};
[net,tr] = train(net,inputs,targets);
outputs = net(inputs); errors = gsubtract(targets,outputs); performance = perform(net,targets,outputs)
view(net)
sim(net,outputs)
댓글 수: 1
Matt J
2013년 7월 10일
And the desired output is...?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Pattern Recognition에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!