Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inputs = [-4.1 -4.0 +4.0 +4.1 +6.0 +6.1];
- targets = [+.97 +.99 +.01 +.03 +1.0 +1.0];
- wv = -1:.1:1;
- bv = -2.5:.25:2.5;
- es = errsurf(inputs,targets,wv,bv,'tansig');
- plotes(wv,bv,es,[100 60])
- net = newff(inputs,targets,[1],{'tansig'});
- net = train(net,inputs,targets);
- outputs = net(inputs);
- errors = outputs - targets;
- SSE = sse(errors)
- plotep(net.IW{1,1},net.b{1},SSE);
Add Comment
Please, Sign In to add comment