Why the code is giving different results, every time I run it ???
显示 更早的评论
clc;clear all;close all;
net = newff([-10 10],[4 1],{'tansig','purelin'});
p = [-10 -5 0 5 10];
t = [0 0 1 1 1];
y = sim(net,p);
e = t-y;
perf = mse(e);
%%%%%%%%%%%%%%%%% End of the Code %%%%%%%%%%%%%%%%%%%%%%%
Why the result of the code is giving different results every time I run it.
1 个评论
Jan
2013-2-1
clc;clear all;close all; is a brute cleaning. Especially clear all is not useful, but use clear variables to allow Matlab to keep the expensively parsed functions in the memory.
采纳的回答
更多回答(1 个)
Vito
2013-2-1
1 个投票
Each time occurs network initialization. That is initial IW installation. Usually it occurs in a random way. Therefore result, on an untrained network always the different.
类别
在 帮助中心 和 File Exchange 中查找有关 Function Approximation and Clustering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!