forked from mcostalba/Stockfish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basis implementation of using main and capture history for scoring th…
…e different possible moves (no functional changes but slower). Bench: 4881443
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that in all likelihood the Elo loss at LTC can be obtained accurately from the Elo loss at STC. See comment here 31m059/Stockfish@a76d059
I think the LTC non-functional tests are a bit of a waste.
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put the prio of the LTC test to -1. Change if you deem necessary.
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vondele
Thats ok. Perhaps later if framework empty we can do the LTC too because above approximations are only for small speedups reliable. Here we have a massive 40 elo loss.
I have started my first try against this base implemenation here. Hopefully i or someone els gets here some out and we can fill the elo gap.
https://tests.stockfishchess.org/tests/view/5e9d74c7caaff5d60a50a872
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good luck testing the ideas.
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, the logarithmic function should also cover the 40Elo case.
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, using the logarithmic model on https://github.com/glinscott/fishtest/wiki/UsefulData#elo-from-speedups
STC: 43.61 Elo -> slowdown x = 100 * (math.exp(43.61 / 210.366) - 1) -> 23.03% slowdown
predicted at LTC -> 142.987 * math.log(1+23.03/100) = 29.63 Elo
STC: https://tests.stockfishchess.org/tests/view/5e9d70e2caaff5d60a50a86b
LTC: https://tests.stockfishchess.org/tests/view/5e9d712acaaff5d60a50a86d
I guess that validates the 'elo-from-speedups' model.
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, these elo difference is a significant overestimation of what the real cost of this is. The trick with
volatile
here is used a bit in an extreme way. The code will be much more efficient onceh
andhint
are declared normal ints. What I intended would be to use just volatile once, not in a hot loop e.g.furthermore, the
if
incan be presumably removed if we would manage to integrate
thisThread->mainHistory
intothisThread->captureHistory
, which should be possible ifthisThread->captureHistory[movedPiece][to][0]
is still unused ? The latter might be even a useful way to represent stuff in master.82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, a first step attempt to make the base branch faster: https://tests.stockfishchess.org/tests/view/5e9fe5b16c9315ea7547beab
Probably ~< 20Elo at STC.
82958c9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vondele
Thanks for this useful informations, I have already cleaned up my master from volatile for this experimental branch and started a short regression test to look how far we behind now.
https://tests.stockfishchess.org/tests/view/5ea001d26c9315ea7547bed8