MATLAB CODE FOR ANN is not producing the desired output,program code is given .
Show older comments
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 Comment
Matt J
on 10 Jul 2013
And the desired output is...?
Accepted Answer
More Answers (0)
Categories
Find more on Pattern Recognition in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!