mcostalba wrote:Sven Schüle wrote:
Since the 45 seems to be related more to the H.gain() than to the futility_margin() term according to Joona, both Ralph (I guess) and myself would be happy if you'd add the 45 to the H.gain() internally
Hi Sven,
I am very glad to speak about code changes with you, Ralph or everybody else interested. I only ask one thing if possible: before to ask a code modification please do read the code.
You are not a casual troll asking no-sense on main forum, I think you are very serious and prepared, that's the reason I am asking you to read the source before to post.
If you do this you see that gain has a clear and obvious definition that is the difference in static evaluation between two consecutive nodes. So I am sure you agree with me that adding a constant dropped from nowhere in such context makes no sense, instead futilitty pruning are just values of a table, so it's there where adding a 45 makes no harm in code readibility.
The bottom line is: if you just want to suggest new features, report bug, express opinions, then it is ok everything you write. But if you are pointing at specific code changes then please do read the actual code _before_ to post.
I have read the code actually, and I did it long before that post above. It is possible, though, that I did not do it carefully enough at the moment I wrote the above. The point is, as I wrote, I based my comment on the statement of Joona who has probably read the code, too

His statement was that "H.gain() returned an estimate based on statistical data". Therefore I did not think even for a tiny moment about putting in question what he wrote, which may be my only fault according to your opinion ...
In fact, after looking into the code a second time, I still believe that Joona is right. The H.gain() function does *not* return just the difference between two consecutive evals, it is based on the gains table which collects some kind of maximum eval delta over time. You may be right in stating that putting that "45" constant into the code that manages the gains table could reduce its readabilty, so I accept that argument against it, of course.
Sven