Viewing a bin book file

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Guenther
Posts: 4718
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Viewing a bin book file

Post by Guenther »

giovanni wrote:
hgm wrote:
giovanni wrote:Thanks for your answer, but I wasn't able to find a way how to view and edit a book in xboard. Could you detail a little bit more your answer?
Select "Edit Book" from the "Edit" menu.

A window like this should appear:

Image

It would edit the book currently configured as GUI book, through the "Common Engine Options" dialog. (In the "Options' or the "Engine" menu, depending on which XBoard version you use.)
Thanks. May I choose any book to edit or it has to be the one that comes with the engine I am using?
Any book. Just select the book first and then go to edit book.
(SCID BTW has the same option in newer versions, but XB/WB shows slightly more info IIRC)
https://rwbc-chess.de

[Trolls n'existent pas...]
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Viewing a bin book file

Post by hgm »

Ozymandias wrote:
hgm wrote:
giovanni wrote:Thanks for your answer, but I wasn't able to find a way how to view and edit a book in xboard. Could you detail a little bit more your answer?
Select "Edit Book" from the "Edit" menu.

A window like this should appear:

Image

It would edit the book currently configured as GUI book, through the "Common Engine Options" dialog. (In the "Options' or the "Engine" menu, depending on which XBoard version you use.)
I'm guessing the number after the weight, is the raw data (wins x2 + draws x1), but what're the fractions?
The numbers in braces are the learn fields: half-points and number of games during learning.

BTW, the percentage cannot/neednot be edited; it is automatically recalculated based on the weights when you commit the edited data to book.

With the 'add next move' button you can cause the next move you play on the board to be a added to the list with weight 1.
User avatar
Ozymandias
Posts: 1542
Joined: Sun Oct 25, 2009 2:30 am

Re: Viewing a bin book file

Post by Ozymandias »

hgm wrote:The numbers in braces are the learn fields: half-points and number of games during learning.

BTW, the percentage cannot/neednot be edited; it is automatically recalculated based on the weights when you commit the edited data to book.
According to Ed Schröder, "Polyglot opening books lack learning". I guess he wasn't aware of this thread, neither was I.

To be honest, I think the best way to have your bin book learn something, is by updating the DB. But I see that might be a problem for those manually editing weights (it can be done with Scid).
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Viewing a bin book file

Post by hgm »

I guess that the learning is meant to have a much faster effect. The intended application is to find out which openings your engine is comfortable with, and which not. If it tries a certain line 10 times, and loses all 10 games, it seems rather foolhardy to keep trying it. Even though in the database it might have been played 5000 times, with a 53% score. You don't want to lose 500 games before you conclude that the move makes the engine score below average.
User avatar
Ozymandias
Posts: 1542
Joined: Sun Oct 25, 2009 2:30 am

Re: Viewing a bin book file

Post by Ozymandias »

hgm wrote:I guess that the learning is meant to have a much faster effect. The intended application is to find out which openings your engine is comfortable with, and which not. If it tries a certain line 10 times, and loses all 10 games, it seems rather foolhardy to keep trying it. Even though in the database it might have been played 5000 times, with a 53% score. You don't want to lose 500 games before you conclude that the move makes the engine score below average.
That's clearly a concern, but it should be addressed at the DB level, by giving priority to recent games, for example. Not exactly what I do, but then, I don't need to :wink:
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Viewing a bin book file

Post by hgm »

Well, it is addressed that way. To give priority to recent games you would have to be able to distinguish recent games from other games. So the book keeps separate statistics for the recent games.
giovanni
Posts: 142
Joined: Wed Jul 08, 2015 12:30 pm

Re: Viewing a bin book file

Post by giovanni »

giovanni wrote:Is it possible to view a book file in bin format? I mean, a view of a ctg format book a la ChessBase would be perfect.
Thanks in advance.
Giovanni
Thanks to all people that contributed to this thread. Both Xboard and scid are indeed excellent and free tools to view and edit bin book file. Thanks to the authors for providing them.