Page 1 of 1

Poly 1.4

Posted: Tue Jun 04, 2019 11:36 am
by Rebel
Poly 1.4 new features

. Poly statistics - extended information among that a fictional rating of the quality of the book, see example.

.Weights on score has been greatly improved. The "Best" and "Vary" options have been replaced with a flexible margin of centi pawns, see picture on your left. A margin of 0.00 represents "Best" while greater margins will exclude moves that fall outside the margin of the highest Stockfish score. Advised margin is 0.10 Use "...." to set the margin of your choice, in case you prefer a margin of 0.05 centi pawns press "enter", type "5" and press "enter" again.

[ F4 ] - Work around on a Polyglot EP bug when using FEN strings.
Convert an analyzed EPD to PGN for the use of making Polyglot books with score and depth.
Tags like "bm" | "ce" | "acd" must be present else the function makes no sense.
After the conversion create a book from the PGN with the new Polyglot 1.5.
Example: polyglot.exe make-book -pgn file.pgn -bin file.bin -max-ply 100 -min-game 1

This function is extremely useful to port the results of SOMU Analyze EPD, Analyze EPD++ or Analyze EPD+++ to PGN ready to be converted to a Polyglot opening book.

[ F5 ] - Check for suspect moves in an opening book. Using the default settings (margin -0.50 | depth=5) it will check the first 5 moves out of book for both engines and if the 4th move out of book has a score <= -0.50 it is reported, see the example of the ProDeo book versus the Cerebellum light book. Double openings are skipped.

[ F6 ] - An alternative for Make Poly Book from the main menu. It's faster and better. Steps:
1. First it will check the reliability of the PGN using pgn-extract.
2. You are prompted to make a selection which engine to use in the PGN, if you leave it blank all engines are used.
3. Define the Book Depth.
4. Assign a fictional Elo that represents the quality of the book you are going to make.
5. From here on everything goes automatic, the parsing, the sorting, the removal of doubles while keeping the highest depths and finally the book making.

The "green" was lacking (impossible) in the Make Poly Book from the main menu hence this new approach.

http://rebel13.nl/download/books.html

Re: Poly 1.4

Posted: Tue Jun 04, 2019 5:27 pm
by Ferdy
Thanks Ed.
Tried F6, but there seems to be a problem, polyglot.bin is empty.
Built a book using the ccrl-3400.pgn in the package under pgn dir.

Log:
C:\poly14>polyglot make-book -pgn pgn\polyglot.pgn -bin books\polyglot.bin -max-ply 100 -min-game 1
PolyGlot 1.5 by Fabien Letouzey (extended format edition)
inserting games ...
4 games.
3 entries.
filtering entries ...
3 entries.
sorting entries ...
saving entries ...
all done!
Based from the log, it processed polyglot.pgn. The contents of that pgn is

Code: Select all

[FEN "rnbqk2r/pp2ppbp/2pp1np1/8/2BPP3/5N2/PPP1QPPP/RNB1K2R w KQkq - 0 11"] [Event "c4b3"] [Depth "31"] [Score "43"] [Result "1/2-1/2"] [Elo "93"] c4b3 *
[FEN "rn1qkb1r/pp2ppp1/2p2n1p/3p1b2/2P5/1P2PN2/PB1P1PPP/RN1QKB1R w KQkq - 0 11"] [Event "b2f6"] [Depth "30"] [Score "28"] [Result "1/2-1/2"] [Elo "91"] b2f6 *
[FEN "r1bqkb1r/pppp1ppp/2n5/1B2p3/4n3/5N2/PPPP1PPP/RNBQ1RK1 w kq - 0 9"] [Event "d2d4"] [Depth "32"] [Score "27"] [Result "1/2-1/2"] [Elo "91"] d2d4 *

Re: Poly 1.4

Posted: Tue Jun 04, 2019 6:32 pm
by Rebel
I get the same result if the Book Depth choice is 10 plies. Try 20, 30 or more. Books moves in the PGN are skipped since they don't have a depth and score.

Re: Poly 1.4

Posted: Wed Jun 05, 2019 11:13 am
by Ferdy
Rebel wrote: Tue Jun 04, 2019 6:32 pm I get the same result if the Book Depth choice is 10 plies. Try 20, 30 or more. Books moves in the PGN are skipped since they don't have a depth and score.
It is 10 plies indeed, but looking at the pgn file, there are games with depth and score.
[Event "CCRL 40/40"]
[Site "CCRL"]
[Date "2018.04.01"]
[Round "1"]
[White "Stockfish 9 64-bit "]
[Black "SugaR XPrO 1.4 64-b"]
[Result "1-0"]
[BlackElo "3411"]
[WhiteElo "3432"]

1. c4 { +0.00/1 0s } 1... e5 { +0.00/1 0s } 2. Nc3 { +0.00/1 0s } 2...
Nc6 { +0.00/1 0s } 3. Nf3 { +0.00/1 0s } 3... g6 { +0.00/1 0s } 4. d4 {
+0.00/1 0s } 4... Bg7 { +0.00/1 0s } 5. Bg5 { +0.00/1 0s } 5... f6 { +0.00/1
0s } 6. Be3 { +0.00/1 0s } 6... d6 { +0.00/1 0s } 7. g3 { +0.53/30 77s
But of course this is a book move since the time is 0s.

So this is not an ordinary polyglot making as it considered the score and depth. If all games in the pgn start on book moves from startpos, the resulting polyglot book might not contain records for 1. e4, 1. d4 and others. However this can be used for book merging.

Re: Poly 1.4

Posted: Wed Jun 05, 2019 11:38 am
by Rebel
Ferdy wrote: Wed Jun 05, 2019 11:13 am
Rebel wrote: Tue Jun 04, 2019 6:32 pm I get the same result if the Book Depth choice is 10 plies. Try 20, 30 or more. Books moves in the PGN are skipped since they don't have a depth and score.
It is 10 plies indeed, but looking at the pgn file, there are games with depth and score.
[Event "CCRL 40/40"]
[Site "CCRL"]
[Date "2018.04.01"]
[Round "1"]
[White "Stockfish 9 64-bit "]
[Black "SugaR XPrO 1.4 64-b"]
[Result "1-0"]
[BlackElo "3411"]
[WhiteElo "3432"]

1. c4 { +0.00/1 0s } 1... e5 { +0.00/1 0s } 2. Nc3 { +0.00/1 0s } 2...
Nc6 { +0.00/1 0s } 3. Nf3 { +0.00/1 0s } 3... g6 { +0.00/1 0s } 4. d4 {
+0.00/1 0s } 4... Bg7 { +0.00/1 0s } 5. Bg5 { +0.00/1 0s } 5... f6 { +0.00/1
0s } 6. Be3 { +0.00/1 0s } 6... d6 { +0.00/1 0s } 7. g3 { +0.53/30 77s
But of course this is a book move since the time is 0s.

So this is not an ordinary polyglot making as it considered the score and depth. If all games in the pgn start on book moves from startpos, the resulting polyglot book might not contain records for 1. e4, 1. d4 and others. However this can be used for book merging.
Exactly.

Since it is an improvement (replacement) of the 1.3 - add elo to your (existing) Polyglot opening book.

Perhaps I should have added that for clarity.

You can make a computer opening book from scratch with SOMU 1.4 -> Prepare EPD -> Analyze EPD Multi-PV but the results are bad, see the other thread.

Re: Poly 1.4

Posted: Wed Jun 05, 2019 11:39 pm
by Dann Corbit
Here is the data from your PGN as a SQLite database:
https://drive.google.com/open?id=1IfZxV ... okac4PpztR
There are some minor changes.

You can use the SQLite command line tools, or one of the standards based drivers to play with the data.

For the opening positions, which have no engine evaluation, I used the evaluation information from my main database table called Epd.
For engine positions with useless, shallow searches, I used the evaluation information from my main database table called Epd and also changed the engine name by appending a numeric field to the name in parenthesis.