Monday, June 23, 2008

What if it explores in-correctly?

Whenever you are looking into the probability space, give me some reasoning to verify or to convince me that you are looking into the space which is beautiful.
By beautiful space, I mean the space which is useful to explore.

In this perspective, my algorithm was looking into the space which was contracted in some random way.

In order to fix it, i needed to change by explore strategy:


notOK = 1;
while (notOK)
Try(i).A = Obj.A + step*(2*rand-1);
% Try(i).A = Obj.A + step*randn; % not quite gaussian :)
if Try(i).A > 0
notOK = 0;
end
end
notOK = 1;
while (notOK)
Try(i).B = Obj.B + step*(2*rand-1);
if Try(i).B > 0
notOK = 0;
end
end
notOK = 1;
while (notOK)
Try(i).C = Obj.C + step*(2*rand-1);
if Try(i).C > 0
notOK = 0;
end
end

No comments: