PolyGlot and opening book

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

PolyGlot and opening book

Postby Fabien Letouzey » 06 Feb 2005, 09:33

Hi all,

As promised in the readme file, I am adding book support to PolyGlot.

For it to be usable, I need to provide commonly-used heuristics.
Experienced "book makers" can probably help me here.

In this post I want to focus on common random books built from game
collections, not hand-tuned ones yet. I also have to point out I am
considering here the PGN-extracting process, not how to choose a move
at run time (probabilities, which for now are simply the popularity).

In other words: given a PGN file, how does one usually decide whether
a move should be included in book or not.

For now I only have:

- minimum number of games; what's a typical value: 3-5?

Other common heuristics might be:

- at least one win (or draw)?
- minimum average score (e.g. 25% of the points)?
- minimum proportion (e.g. played 10% of the time)?

Maybe some others?

- ?

I would like to provide at least the most useful ones, but also with
decent default values.

Thanks for your help,

Fabien.
Fabien Letouzey
 
Posts: 110
Joined: 03 Dec 2004, 10:17
Location: France

Re: PolyGlot and opening book

Postby Fabien Letouzey » 06 Feb 2005, 09:56

I forgot to mention another common heuristic:

- only keep the first n plies of each game; typical values: 20-30?

Fabien.
Fabien Letouzey
 
Posts: 110
Joined: 03 Dec 2004, 10:17
Location: France

Re: PolyGlot and opening book

Postby Pallav Nawani » 06 Feb 2005, 19:04

Some more heuristics:
- ELO Ranking of the players
- Game length. If a game is a quick loss, then its likely that a player made a mistake in opening.
- Draws (I think draws are good, but some people exclude draws.
User avatar
Pallav Nawani
 
Posts: 147
Joined: 26 Sep 2004, 20:00
Location: Dehradun, India

Re: PolyGlot and opening book

Postby Fabien Letouzey » 07 Feb 2005, 10:12

Pallav Nawani wrote:Some more heuristics:
- ELO Ranking of the players
- Game length. If a game is a quick loss, then its likely that a player made a mistake in opening.
- Draws (I think draws are good, but some people exclude draws.


Hi!

Hm ... IMO game selection should be done before submitting the PGN for book making. Or is any of these features missing in chess GUIs?

Fabien.
Fabien Letouzey
 
Posts: 110
Joined: 03 Dec 2004, 10:17
Location: France

Re: PolyGlot and opening book

Postby Peter Fendrich » 08 Feb 2005, 14:39

Fabien Letouzey wrote:
Pallav Nawani wrote:Some more heuristics:
- ELO Ranking of the players
- Game length. If a game is a quick loss, then its likely that a player made a mistake in opening.
- Draws (I think draws are good, but some people exclude draws.


Hi!

Hm ... IMO game selection should be done before submitting the PGN for book making. Or is any of these features missing in chess GUIs?

Fabien.


I think you're right.
Another thing:
Reserve space (x bits) for each move with information that the engine can put to and get from.
This enables book-learning for those interested.
Probably best to have an on/off feature for engines without learning that want to save space...

/Peter
User avatar
Peter Fendrich
 
Posts: 193
Joined: 26 Sep 2004, 20:28
Location: Sweden

Re: PolyGlot and opening book

Postby Dann Corbit » 08 Feb 2005, 16:31

Fabien Letouzey wrote:Hi all,

As promised in the readme file, I am adding book support to PolyGlot.

For it to be usable, I need to provide commonly-used heuristics.
Experienced "book makers" can probably help me here.

In this post I want to focus on common random books built from game
collections, not hand-tuned ones yet. I also have to point out I am
considering here the PGN-extracting process, not how to choose a move
at run time (probabilities, which for now are simply the popularity).

In other words: given a PGN file, how does one usually decide whether
a move should be included in book or not.

For now I only have:

- minimum number of games; what's a typical value: 3-5?

Other common heuristics might be:

- at least one win (or draw)?
- minimum average score (e.g. 25% of the points)?
- minimum proportion (e.g. played 10% of the time)?

Maybe some others?

- ?

I would like to provide at least the most useful ones, but also with
decent default values.

Thanks for your help,

Fabien.


You can use SCID or ChessAssistant (among other things) to filter the games for book creation.

My own favorite choices are:
1. Correpsondence games between players in the top 2%
2. Tournament level games between players of 2625 Elo or higher (both)
3. SSDF games on 1200 MHz machines between highly rated opponents

Things that are nice to add to the book are W/L/D numbers, a 2 byte slot for centipawn evaluation and a 1 byte entry for depth of that evaluation.
A slot for nags from each of: BCO/ECO/MCO/NCO
A counter for recent wins/losses/draws by your chess engine at blitz time control and a second counter set for your chess engine at standard time control.

Instead of a custom format, why not use FastDB:
http://www.garret.ru/~knizhnik/fastdb.html

Then, you can pull statistical data with SQL queries instead of writing custom programs. Far less tedious and error prone.
Dann Corbit
 

Re: PolyGlot and opening book

Postby Fabien Letouzey » 09 Feb 2005, 09:42

Peter Fendrich wrote:I think you're right.
Another thing:
Reserve space (x bits) for each move with information that the engine can put to and get from.
This enables book-learning for those interested.
Probably best to have an on/off feature for engines without learning that want to save space...


Hi Peter,

It is a PolyGlot book. Think of it as a GUI one if you want. The UCI engine is not aware of anything!

Learning will be handled by PolyGlot (optional of course).

Fabien.
Fabien Letouzey
 
Posts: 110
Joined: 03 Dec 2004, 10:17
Location: France

Re: PolyGlot and opening book

Postby Peter Fendrich » 09 Feb 2005, 14:42

Fabien Letouzey wrote:
Peter Fendrich wrote:I think you're right.
Another thing:
Reserve space (x bits) for each move with information that the engine can put to and get from.
This enables book-learning for those interested.
Probably best to have an on/off feature for engines without learning that want to save space...

Hi Peter,
It is a PolyGlot book. Think of it as a GUI one if you want. The UCI engine is not aware of anything!
Learning will be handled by PolyGlot (optional of course).
Fabien.
Sure it is,
but that doesn't mean it must to be like that.
I would prefer my own learning alg's :)
/Peter
User avatar
Peter Fendrich
 
Posts: 193
Joined: 26 Sep 2004, 20:28
Location: Sweden


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 55 guests