King Psqt Tuning

After a session of tuning for King Psqt I got some new values, which was later
tweaked manually by me Fauzi, to result in an Elo-gain patch which seems to scale
pretty well:

STC: LLR: -2.96 (-2.94,2.94) [0.00,4.00]
Total: 100653 W: 22550 L: 22314 D: 55789 [Yellow patch]

LTC: LLR: 2.96 (-2.94,2.94) [0.00,4.00]
Total: 147079 W: 25584 L: 24947 D: 96548 [Green Patch]

Bench: 4669050
This commit is contained in:
FauziAkram
2018-08-08 17:48:06 +02:00
committed by Stéphane Nicolet
parent d96c1c32a2
commit c569cf263d
2 changed files with 18 additions and 15 deletions

View File

@@ -250,26 +250,29 @@ void MainThread::search() {
Value minScore = this->rootMoves[0].score;
// Find out minimum score and reset votes for moves which can be voted
for (Thread* th: Threads){
for (Thread* th: Threads)
{
minScore = std::min(minScore, th->rootMoves[0].score);
votes[th->rootMoves[0].pv[0]] = 0;
}
// Vote according to score and depth
for (Thread* th : Threads)
votes[th->rootMoves[0].pv[0]] += int(th->rootMoves[0].score - minScore) + int(th->completedDepth);
votes[th->rootMoves[0].pv[0]] += int(th->rootMoves[0].score - minScore)
+ int(th->completedDepth);
// Select best thread
int bestVote = votes[this->rootMoves[0].pv[0]];
for (Thread* th : Threads){
if (votes[th->rootMoves[0].pv[0]] > bestVote){
bestVote = votes[th->rootMoves[0].pv[0]];
bestThread = th;
for (Thread* th : Threads)
{
if (votes[th->rootMoves[0].pv[0]] > bestVote)
{
bestVote = votes[th->rootMoves[0].pv[0]];
bestThread = th;
}
}
}
previousScore = bestThread->rootMoves[0].score;
// Send again PV info if we have a new best thread