How to tune search parameters ?

Discussion of chess software programming and technical issues.

Moderator: Ras

Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

How to tune search parameters ?

Post by Henk »

It seems to be possible to tune evaluation parameters automatically. But what about the other parameters like for instance formulas for R, LMR reduction size, futility boundaries etc. Or is it just change one parameter a bit and then play a few hundred games and see if ELO has increased.
User avatar
hgm
Posts: 28457
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: How to tune search parameters ?

Post by hgm »

more like a few thousand. But otherwise, that is the idea.
tpetzke
Posts: 686
Joined: Thu Mar 03, 2011 4:57 pm
Location: Germany

Re: How to tune search parameters ?

Post by tpetzke »

You can tune them as well

http://macechess.blogspot.de/2013/05/po ... rning.html

Thomas...
Thomas...

=======
http://macechess.blogspot.com - iCE Chess Engine
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: How to tune search parameters ?

Post by Henk »

It says fitness function is a knockout tournament. So how many games do you play to determine the fitness of a candidate (bit vector)? [By the way genetic algorithm only finds a local optimum. ]
mvk
Posts: 589
Joined: Tue Jun 04, 2013 10:15 pm

Re: How to tune search parameters ?

Post by mvk »

Henk wrote:It seems to be possible to tune evaluation parameters automatically. But what about the other parameters like for instance formulas for R, LMR reduction size, futility boundaries etc. Or is it just change one parameter a bit and then play a few hundred games and see if ELO has increased.
Similar method, see last line here.
[Account deleted]
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: How to tune search parameters ?

Post by Henk »

hgm wrote:more like a few thousand. But otherwise, that is the idea.
I only play a few hundred games and even worse against itself. So would it be possible to go from a -> b -> c ->..... -> z where elo z < elo a
if there is a small chance that a transition from a->b is not an improvement.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: How to tune search parameters ?

Post by bob »

Henk wrote:It seems to be possible to tune evaluation parameters automatically. But what about the other parameters like for instance formulas for R, LMR reduction size, futility boundaries etc. Or is it just change one parameter a bit and then play a few hundred games and see if ELO has increased.
As HGM suggested, at least a few thousand games are needed. And you can't just play ultra-fast games. Some search changes will behave differently at longer time controls and you want to be sure you don't make it better at very fast games, but worse at slower games which really count more.
tpetzke
Posts: 686
Joined: Thu Mar 03, 2011 4:57 pm
Location: Germany

Re: How to tune search parameters ?

Post by tpetzke »

So how many games do you play to determine the fitness of a candidate (bit vector)?
I increase the number of played games with each generation. In the early generations some wild candidates are generated, so it takes fewer games to find one of the stronger ones. Later the candidates are closer to each other so I play some more games (700 or so per generation). The winner is not necessarily the strongest one in that generation (far to less games for that) but it is usually a good one. That is enough for the algorithm to converge.
By the way genetic algorithm only finds a local optimum.
So do all the other optimizers presented here but unlike the others GAs have the chance to leave a local optimum again and find a better one.
Thomas...

=======
http://macechess.blogspot.com - iCE Chess Engine
Henk
Posts: 7251
Joined: Mon May 27, 2013 10:31 am

Re: How to tune search parameters ?

Post by Henk »

I remember I once also used an optimizer to optimize the parameters of a genetic algorithm. Like population count, crossover probability mutation probability etc.