Ponder HIT / MISS rate detection?

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

Moderators: hgm, Rebel, chrisw

IWB
Posts: 1539
Joined: Thu Mar 09, 2006 2:02 pm

Ponder HIT / MISS rate detection?

Post by IWB »

Hello

Is there a tool to detect a ponderhit or miss?

Here is an example:

[Event "90 Minutes/Game + 30 Seconds/Move"]
[Site "Engine Match"]
[Date "2016.10.13"]
[Round "1"]
[White "Komodo 10.2"]
[Black "Stockfish 8"]
[ECO "C08"]
[Result "1/2-1/2"]

1. e4 {+0.13/30 4:43m} e6 {+0.08/33 3:36m (e5)} 2. d4
{+0.20/32 2:49m} d5 {+0.14/35 0s} 3. Nd2 {+0.21/33 3:24m}
c5 {+0.08/34 28s} 4. exd5 {+0.20/33 3:52m (Ngf3)} exd5
{+0.14/34 3:38m} 5. Ngf3 {+0.22/35 0s} Nf6 {+0.17/34 3:23m}
6. Bb5+ {+0.18/35 0s} Bd7 {+0.16/32 23s} 7. Bxd7+ {+0.21/35
4:12m} Qxd7 {+0.18/36 1:47m (Nbxd7)} 8. Ne5 {+0.20/33 3:43m
(O-O)} Qb5 {0.00/35 2:33m (Qc7)} 9. c4 {+0.09/31 1:51m}
dxc4 {+0.07/34 50s} 10. O-O {+0.19/32 1:20m} Be7 {+0.14/37
3:33m} 11. dxc5 {+0.12/33 57s} O-O {+0.11/37 6:39m}
12. Ndxc4 {+0.15/36 0s} Bxc5 {+0.10/39 10:14m} 13. b4
{+0.08/38 0s} Bxb4 {0.00/34 1:45m} 14. Rb1 {+0.13/35 47s}
Nc6 {+0.05/38 2:24m} 15. Nxc6 {+0.14/37 28s} bxc6 {+0.08/33
0s} 16. Qc2 {+0.14/35 1:53m} Qc5 {0.00/36 40s} 17. Be3
{+0.20/35 3:44m (a3)} Qe7 {+0.07/35 3:30m} 18. Bd4
{+0.14/36 0s} Ne4 {+0.10/36 1:52m (Rfe8)} 19. Ne5 {+0.23/35
5:40m} c5 {+0.15/41 0s} 20. Ba1 {+0.21/36 3:30m (Nc6)} Nd2
{0.00/35 1:17m} 21. Rxb4 {+0.11/35 1:13m} cxb4 {0.00/36
1:10m} 22. Qxd2 {+0.11/34 2:03m} f6 {0.00/41 6s} 23. Nf3
{+0.07/35 3:56m} a5 {0.00/46 0s} 24. h3 {+0.13/34 1:38m
(Re1)} Qf7 {0.00/42 13:58m (Rfd8)} 25. Bd4 {+0.17/33 1:47m
(Rb1)} b3 {0.00/43 2:15m (Rfd8)} 26. axb3 {0.00/39 3:00m}
Qxb3 {0.00/46 0s} 27. Bb2 {0.00/42 3:27m (Nh4)} Rfb8
{0.00/44 1:42m} 28. Re1 {0.00/43 2:46m (Bc1)} Qa2 {0.00/43
2:17m} 29. Re2 {0.00/42 0s} a4 {0.00/43 45s} 30. Qe1
{0.00/40 17s} Qb3 {0.00/46 1:56m (Qf7)} 31. Nd4 {0.00/36
1:14m} Qc4 {0.00/46 0s (Qd5)} 32. Rc2 {0.00/41 3:31m} Qd5
{0.00/51 0s (Qa2)} 33. Qc3 {0.00/39 2:54m (Qa1)} a3
{0.00/45 1:54m (Rc8)} 34. Bxa3 {0.00/38 1:03m} Rxa3
{0.00/51 50s} 35. Qxa3 {0.00/42 20s} Qxd4 {0.00/55 44s}
36. Qg3 {0.00/48 3:31m (Qa2+)} Rb1+ {0.00/54 1:47m (Rd8)}
37. Kh2 {0.00/47 1:05m} Rh1+ {0.00/58 0s} 38. Kxh1 {0.00/38
0s} Qd1+ {0.00/62 1:48m} 39. Kh2 {0.00/50 0s} Qxc2 {0.00/65
42s} 40. Qf3 {0.00/51 1:44m (Qb8+)} Qc7+ {0.00/60 1:45m
(Kf7)} 41. g3 {0.00/52 1:34m} h6 {0.00/63 0s (Qc4)}
42. Qd5+ {0.00/54 4:04m} Qf7 {0.00/67 0s} 1/2-1/2

If it looks like this: {+0.08/33 3:36m (e5)} it is a Ponder miss (expected e5) and
if it looks like this: {+0.20/32 2:49m} is is a Ponder hit.

Is there a tool to go through a (really big) PGN database and give a ratio between those two move types.


Even better would be something that does the following on top of the ratio:
...
2. d4 {+0.20/32 2:49m} d5 {+0.14/35 0s}

White played d4, that was expected by black so the ponder gained 2m49s.
Now I only need a number to indicate the gained time per game in average?

I ask a lot, I know, and all I can give is a big THANK YOU in advance :-)

Ingo
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Ponder HIT / MISS rate detection?

Post by Ferdy »

IWB wrote:Hello

Is there a tool to detect a ponderhit or miss?

Here is an example:

[Event "90 Minutes/Game + 30 Seconds/Move"]
[Site "Engine Match"]
[Date "2016.10.13"]
[Round "1"]
[White "Komodo 10.2"]
[Black "Stockfish 8"]
[ECO "C08"]
[Result "1/2-1/2"]

1. e4 {+0.13/30 4:43m} e6 {+0.08/33 3:36m (e5)} 2. d4
{+0.20/32 2:49m} d5 {+0.14/35 0s} 3. Nd2 {+0.21/33 3:24m}
c5 {+0.08/34 28s} 4. exd5 {+0.20/33 3:52m (Ngf3)} exd5
{+0.14/34 3:38m} 5. Ngf3 {+0.22/35 0s} Nf6 {+0.17/34 3:23m}
6. Bb5+ {+0.18/35 0s} Bd7 {+0.16/32 23s} 7. Bxd7+ {+0.21/35
4:12m} Qxd7 {+0.18/36 1:47m (Nbxd7)} 8. Ne5 {+0.20/33 3:43m
(O-O)} Qb5 {0.00/35 2:33m (Qc7)} 9. c4 {+0.09/31 1:51m}
dxc4 {+0.07/34 50s} 10. O-O {+0.19/32 1:20m} Be7 {+0.14/37
3:33m} 11. dxc5 {+0.12/33 57s} O-O {+0.11/37 6:39m}
12. Ndxc4 {+0.15/36 0s} Bxc5 {+0.10/39 10:14m} 13. b4
{+0.08/38 0s} Bxb4 {0.00/34 1:45m} 14. Rb1 {+0.13/35 47s}
Nc6 {+0.05/38 2:24m} 15. Nxc6 {+0.14/37 28s} bxc6 {+0.08/33
0s} 16. Qc2 {+0.14/35 1:53m} Qc5 {0.00/36 40s} 17. Be3
{+0.20/35 3:44m (a3)} Qe7 {+0.07/35 3:30m} 18. Bd4
{+0.14/36 0s} Ne4 {+0.10/36 1:52m (Rfe8)} 19. Ne5 {+0.23/35
5:40m} c5 {+0.15/41 0s} 20. Ba1 {+0.21/36 3:30m (Nc6)} Nd2
{0.00/35 1:17m} 21. Rxb4 {+0.11/35 1:13m} cxb4 {0.00/36
1:10m} 22. Qxd2 {+0.11/34 2:03m} f6 {0.00/41 6s} 23. Nf3
{+0.07/35 3:56m} a5 {0.00/46 0s} 24. h3 {+0.13/34 1:38m
(Re1)} Qf7 {0.00/42 13:58m (Rfd8)} 25. Bd4 {+0.17/33 1:47m
(Rb1)} b3 {0.00/43 2:15m (Rfd8)} 26. axb3 {0.00/39 3:00m}
Qxb3 {0.00/46 0s} 27. Bb2 {0.00/42 3:27m (Nh4)} Rfb8
{0.00/44 1:42m} 28. Re1 {0.00/43 2:46m (Bc1)} Qa2 {0.00/43
2:17m} 29. Re2 {0.00/42 0s} a4 {0.00/43 45s} 30. Qe1
{0.00/40 17s} Qb3 {0.00/46 1:56m (Qf7)} 31. Nd4 {0.00/36
1:14m} Qc4 {0.00/46 0s (Qd5)} 32. Rc2 {0.00/41 3:31m} Qd5
{0.00/51 0s (Qa2)} 33. Qc3 {0.00/39 2:54m (Qa1)} a3
{0.00/45 1:54m (Rc8)} 34. Bxa3 {0.00/38 1:03m} Rxa3
{0.00/51 50s} 35. Qxa3 {0.00/42 20s} Qxd4 {0.00/55 44s}
36. Qg3 {0.00/48 3:31m (Qa2+)} Rb1+ {0.00/54 1:47m (Rd8)}
37. Kh2 {0.00/47 1:05m} Rh1+ {0.00/58 0s} 38. Kxh1 {0.00/38
0s} Qd1+ {0.00/62 1:48m} 39. Kh2 {0.00/50 0s} Qxc2 {0.00/65
42s} 40. Qf3 {0.00/51 1:44m (Qb8+)} Qc7+ {0.00/60 1:45m
(Kf7)} 41. g3 {0.00/52 1:34m} h6 {0.00/63 0s (Qc4)}
42. Qd5+ {0.00/54 4:04m} Qf7 {0.00/67 0s} 1/2-1/2

If it looks like this: {+0.08/33 3:36m (e5)} it is a Ponder miss (expected e5) and
if it looks like this: {+0.20/32 2:49m} is is a Ponder hit.

Is there a tool to go through a (really big) PGN database and give a ratio between those two move types.


Even better would be something that does the following on top of the ratio:
...
2. d4 {+0.20/32 2:49m} d5 {+0.14/35 0s}

White played d4, that was expected by black so the ponder gained 2m49s.
Now I only need a number to indicate the gained time per game in average?

I ask a lot, I know, and all I can give is a big THANK YOU in advance :-)

Ingo
I have not known such tool, but there seems to be a gui that can display ponder hit during a match.

Tried to create one check if my understanding is correct.
The comment of black move would tell if the ponder move of white (at previous move) is a hit or a miss.

Code: Select all

1. e4 {+0.13/30 4:43m} e6 {+0.08/33 3:36m (e5)}
The (e5) is the ponder move of white, and it is a miss.

Likewise for white move comment,

Code: Select all

Rfb8 {0.00/44 1:42m} 28. Re1 {0.00/43 2:46m (Bc1)}
The (Bc1) is the ponder move of black and it is a miss.

The hit and miss calculation of a white player starts at first move of black while that of a black player starts at 2nd move of white.

From sample game above check the following if this is right.

Code: Select all

A. Players list:

Komodo 10.2
Stockfish 8

B. Ponder hit and miss table:

      player    hit   miss  ratio  games  pts%
 Stockfish 8     30     11   2.73      1  50.0
 Komodo 10.2     29     13   2.23      1  50.0

file : ponder_game.pgn
date : 2016-11-29 21:08:01
IWB
Posts: 1539
Joined: Thu Mar 09, 2006 2:02 pm

Re: Ponder HIT / MISS rate detection?

Post by IWB »

Ferdy wrote: I have not known such tool, but there seems to be a gui that can display ponder hit during a match.

Tried to create one check if my understanding is correct.
The comment of black move would tell if the ponder move of white (at previous move) is a hit or a miss.

Code: Select all

1. e4 {+0.13/30 4:43m} e6 {+0.08/33 3:36m (e5)}
The (e5) is the ponder move of white, and it is a miss.
Right!
Ferdy wrote:
Likewise for white move comment,

Code: Select all

Rfb8 {0.00/44 1:42m} 28. Re1 {0.00/43 2:46m (Bc1)}
The (Bc1) is the ponder move of black and it is a miss.
Right!
Ferdy wrote: The hit and miss calculation of a white player starts at first move of black while that of a black player starts at 2nd move of white.
In the above case that is right(!), of there is nothing after a move within brackets (No {}) this means that these are book moves and they should not be counted.

Ferdy wrote: From sample game above check the following if this is right.

Code: Select all

A. Players list:

Komodo 10.2
Stockfish 8

B. Ponder hit and miss table:

      player    hit   miss  ratio  games  pts%
 Stockfish 8     30     11   2.73      1  50.0
 Komodo 10.2     29     13   2.23      1  50.0

file : ponder_game.pgn
date : 2016-11-29 21:08:01
How have you done this? This is awsome! It means that we have a 84 ply game and 59 Ponder hits, that is a 70% ratio. Much higher than expected! (For equal opponents, different strength is most likely lower)

I need a tool like this, not only for individual engine but for the overall rate as well. (With the exception of no brackets, which means no comments but book moves.

This is an example with book moves:
[Event "90 Minutes/Game + 30 Seconds/Move"]
[Site "Engine Match"]
[Date "2016.11.08"]
[Round "1"]
[White "Stockfish 8 4s"]
[Black "Komodo 10.2 4s"]
[ECO "C65"]
[Result "1/2-1/2"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. d4 Nxd4 5. Nxd4 c6 6. Bc4
{+0.12/35 5:08m} exd4 {+0.10/30 3:40m} 7. Qxd4 {+0.06/37
0s} Qb6 {+0.03/32 4:50m} 8. Qe5+ {+0.07/37 0s} Be7
{+0.05/32 1:38m} 9. O-O {0.00/34 3s} Qd8 {+0.08/31 3:29m}
10. Qg3 {0.00/38 0s} O-O {+0.06/32 2:52m} 11. Nc3 {+0.02/36
3:16m} b5 {+0.10/32 0s} 12. Bd3 {+0.27/29 1:24m} d6
{+0.05/31 31s} 13. a3 {0.00/33 4:50m (h3)} Ng4 {+0.06/37
13:12m} 14. Be2 {+0.07/40 0s} Bh4 {0.00/33 2:08m (Ne5)}
15. Qf4 {0.00/38 8:33m (Qd3)} Ne5 {0.00/33 1:08m} 16. Qd2
{0.00/39 58s} Re8 {0.00/38 3:14m (a5)} 17. Rd1 {0.00/34
2:37m} Qb6 {0.00/38 0s (Be7)} 18. Qd4 {+0.13/33 1:35m
(Qf4)} f5 {0.00/35 2:55m} 19. Qxb6 {+0.11/37 2:41m} axb6
{0.00/37 0s} 20. Bf4 {+0.03/35 31s (Be3)} Nf7 {0.00/36
3:10m} 21. Bxd6 {+0.09/37 41s} Nxd6 {+0.07/36 5:58m}
22. Rxd6 {0.00/41 0s} b4 {+0.05/38 2:36m} 23. Nd1 {0.00/41
18s} Rxe4 {+0.13/36 3:25m} 24. Ne3 {+0.02/39 0s} f4
{+0.08/35 2:23m} 25. Bd3 {0.00/40 3:08m} Bxf2+ {+0.07/40
0s} 26. Kxf2 {0.00/37 49s} fxe3+ {+0.07/38 15s} 27. Ke1
{0.00/40 2:57m} Rf4 {+0.07/41 0s} 28. Rd8+ {0.00/39 1:10m
(Ke2)} Kf7 {0.00/36 1:11m} 29. Ke2 {0.00/43 3:04m} bxa3
{0.00/41 0s} 30. bxa3 {0.00/42 1:58m (Rxa3)} Ke7 {0.00/41
4:09m} 31. Rg8 {0.00/44 0s (Rh8)} Rf2+ {0.00/39 1:54m}
32. Kxe3 {0.00/44 0s} Rxg2 {0.00/39 1:25m} 33. Bxh7
{0.00/45 5:44m (Be4)} Rxh2 {0.00/39 1:51m (Kd6)} 34. Bf5
{0.00/43 5:00m (Bd3)} Bb7 {0.00/41 2:42m} 35. Rxg7+
{0.00/48 0s} Kf6 {0.00/42 1:22m} 36. Rxb7 {0.00/51 2:33m}
Kxf5 {0.00/44 0s} 37. Rxb6 {0.00/47 39s} Rxc2 {0.00/44
1:17m} 38. a4 {0.00/59 1:37m} Rd8 {0.00/45 1:38m (Rc5)}
39. a5 {0.00/53 3:17m (Rf1+)} Rc3+ {0.00/52 3:43m} 40. Ke2
{0.00/56 0s (Kf2)} Rc2+ {0.00/55 4:28m (Ke5)} 41. Kf1
{0.00/56 6:08m (Ke3)} Rh8 {0.00/45 1:19m (Ke6)} 42. Kg1
{0.00/59 2:09m} Ke5 {0.00/47 0s (Ke6)} 43. a6 {0.00/58
2:49m (Rb4)} Rg8+ {0.00/53 7:08m} 44. Kf1 {0.00/62 0s
(Kh1)} Rh8 {0.00/42 55s (Rf8+)} 45. Ra5+ {0.00/62 2:28m}
Kd6 {0.00/49 0s (c5)} 46. Kg1 {0.00/60 2:39m} Rg8+ {0.00/51
8s} 47. Kf1 {0.00/61 3:41m} Rf8+ {0.00/53 0s} 48. Kg1
{0.00/64 10:31m} Rg8+ {0.00/56 0s} 49. Kf1 {0.00/80 1:23m}
Re8 {0.00/48 0s (Rf8+)} 50. Ra1 {0.00/51 1:28m (Rf5)} Rf8+
{0.00/48 1:47m} 51. Kg1 {0.00/55 0s} Kc5 {0.00/51 1:47m
(Rg8+)} 52. Rb3 {0.00/50 4:17m (Rb7)} Rg8+ {0.00/50 1:44m}
53. Kf1 {0.00/50 2:06m} Rf8+ {0.00/52 53s} 54. Ke1 {0.00/53
1:24m (Kg1)} Re8+ {0.00/49 2:27m} 55. Kd1 {0.00/55 0s
(Kf1)} Rg2 {0.00/43 54s (Rh2)} 56. Rc1+ {0.00/47 1:09m} Kd6
{0.00/47 57s} 57. Rd3+ {0.00/52 0s (a7)} Kc7 {0.00/42 46s}
58. Rcc3 {0.00/53 27s} Rf8 {0.00/45 1:02m (Kb6)} 59. Rf3
{0.00/49 1:30m} Rh8 {0.00/45 0s (Rxf3)} 60. Rh3 {0.00/50
1:18m} Rf8 {0.00/45 0s (Rd8+)} 61. Rh7+ {0.00/51 1:14m} Kb6
{0.00/46 25s} 62. Ke1 {0.00/53 38s} Ra2 {0.00/48 1:52m
(Rg1+)} 63. a7 {0.00/52 1:30m} Re8+ {0.00/49 24s} 64. Kf1
{0.00/56 2:05m} Rf8+ {0.00/52 0s} 65. Ke1 {0.00/65 47s}
Re8+ {0.00/53 2:08m} 66. Kf1 {0.00/75 0s} Rf8+ {0.00/57
3:50m} 67. Ke1 {0.00/80 0s} 1/2-1/2

The first 5 moves are from a PGN file (book).

See here and following why I am asking:
http://talkchess.com/forum/viewtopic.ph ... 72&t=62146

Ingo
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Ponder HIT / MISS rate detection?

Post by Ferdy »

IWB wrote: In the above case that is right(!), of there is nothing after a move within brackets (No {}) this means that these are book moves and they should not be counted.
I will try to work out on that example, a game with book moves.

BTW which GUI created this notation output?
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Ponder HIT / MISS rate detection?

Post by Ferdy »

IWB wrote: This is an example with book moves:
[Event "90 Minutes/Game + 30 Seconds/Move"]
[Site "Engine Match"]
[Date "2016.11.08"]
[Round "1"]
[White "Stockfish 8 4s"]
[Black "Komodo 10.2 4s"]
[ECO "C65"]
[Result "1/2-1/2"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. d4 Nxd4 5. Nxd4 c6 6. Bc4
{+0.12/35 5:08m} exd4 {+0.10/30 3:40m} 7. Qxd4 {+0.06/37
0s} Qb6 {+0.03/32 4:50m} 8. Qe5+ {+0.07/37 0s} Be7
{+0.05/32 1:38m} 9. O-O {0.00/34 3s} Qd8 {+0.08/31 3:29m}
10. Qg3 {0.00/38 0s} O-O {+0.06/32 2:52m} 11. Nc3 {+0.02/36
3:16m} b5 {+0.10/32 0s} 12. Bd3 {+0.27/29 1:24m} d6
{+0.05/31 31s} 13. a3 {0.00/33 4:50m (h3)} Ng4 {+0.06/37
13:12m} 14. Be2 {+0.07/40 0s} Bh4 {0.00/33 2:08m (Ne5)}
15. Qf4 {0.00/38 8:33m (Qd3)} Ne5 {0.00/33 1:08m} 16. Qd2
{0.00/39 58s} Re8 {0.00/38 3:14m (a5)} 17. Rd1 {0.00/34
2:37m} Qb6 {0.00/38 0s (Be7)} 18. Qd4 {+0.13/33 1:35m
(Qf4)} f5 {0.00/35 2:55m} 19. Qxb6 {+0.11/37 2:41m} axb6
{0.00/37 0s} 20. Bf4 {+0.03/35 31s (Be3)} Nf7 {0.00/36
3:10m} 21. Bxd6 {+0.09/37 41s} Nxd6 {+0.07/36 5:58m}
22. Rxd6 {0.00/41 0s} b4 {+0.05/38 2:36m} 23. Nd1 {0.00/41
18s} Rxe4 {+0.13/36 3:25m} 24. Ne3 {+0.02/39 0s} f4
{+0.08/35 2:23m} 25. Bd3 {0.00/40 3:08m} Bxf2+ {+0.07/40
0s} 26. Kxf2 {0.00/37 49s} fxe3+ {+0.07/38 15s} 27. Ke1
{0.00/40 2:57m} Rf4 {+0.07/41 0s} 28. Rd8+ {0.00/39 1:10m
(Ke2)} Kf7 {0.00/36 1:11m} 29. Ke2 {0.00/43 3:04m} bxa3
{0.00/41 0s} 30. bxa3 {0.00/42 1:58m (Rxa3)} Ke7 {0.00/41
4:09m} 31. Rg8 {0.00/44 0s (Rh8)} Rf2+ {0.00/39 1:54m}
32. Kxe3 {0.00/44 0s} Rxg2 {0.00/39 1:25m} 33. Bxh7
{0.00/45 5:44m (Be4)} Rxh2 {0.00/39 1:51m (Kd6)} 34. Bf5
{0.00/43 5:00m (Bd3)} Bb7 {0.00/41 2:42m} 35. Rxg7+
{0.00/48 0s} Kf6 {0.00/42 1:22m} 36. Rxb7 {0.00/51 2:33m}
Kxf5 {0.00/44 0s} 37. Rxb6 {0.00/47 39s} Rxc2 {0.00/44
1:17m} 38. a4 {0.00/59 1:37m} Rd8 {0.00/45 1:38m (Rc5)}
39. a5 {0.00/53 3:17m (Rf1+)} Rc3+ {0.00/52 3:43m} 40. Ke2
{0.00/56 0s (Kf2)} Rc2+ {0.00/55 4:28m (Ke5)} 41. Kf1
{0.00/56 6:08m (Ke3)} Rh8 {0.00/45 1:19m (Ke6)} 42. Kg1
{0.00/59 2:09m} Ke5 {0.00/47 0s (Ke6)} 43. a6 {0.00/58
2:49m (Rb4)} Rg8+ {0.00/53 7:08m} 44. Kf1 {0.00/62 0s
(Kh1)} Rh8 {0.00/42 55s (Rf8+)} 45. Ra5+ {0.00/62 2:28m}
Kd6 {0.00/49 0s (c5)} 46. Kg1 {0.00/60 2:39m} Rg8+ {0.00/51
8s} 47. Kf1 {0.00/61 3:41m} Rf8+ {0.00/53 0s} 48. Kg1
{0.00/64 10:31m} Rg8+ {0.00/56 0s} 49. Kf1 {0.00/80 1:23m}
Re8 {0.00/48 0s (Rf8+)} 50. Ra1 {0.00/51 1:28m (Rf5)} Rf8+
{0.00/48 1:47m} 51. Kg1 {0.00/55 0s} Kc5 {0.00/51 1:47m
(Rg8+)} 52. Rb3 {0.00/50 4:17m (Rb7)} Rg8+ {0.00/50 1:44m}
53. Kf1 {0.00/50 2:06m} Rf8+ {0.00/52 53s} 54. Ke1 {0.00/53
1:24m (Kg1)} Re8+ {0.00/49 2:27m} 55. Kd1 {0.00/55 0s
(Kf1)} Rg2 {0.00/43 54s (Rh2)} 56. Rc1+ {0.00/47 1:09m} Kd6
{0.00/47 57s} 57. Rd3+ {0.00/52 0s (a7)} Kc7 {0.00/42 46s}
58. Rcc3 {0.00/53 27s} Rf8 {0.00/45 1:02m (Kb6)} 59. Rf3
{0.00/49 1:30m} Rh8 {0.00/45 0s (Rxf3)} 60. Rh3 {0.00/50
1:18m} Rf8 {0.00/45 0s (Rd8+)} 61. Rh7+ {0.00/51 1:14m} Kb6
{0.00/46 25s} 62. Ke1 {0.00/53 38s} Ra2 {0.00/48 1:52m
(Rg1+)} 63. a7 {0.00/52 1:30m} Re8+ {0.00/49 24s} 64. Kf1
{0.00/56 2:05m} Rf8+ {0.00/52 0s} 65. Ke1 {0.00/65 47s}
Re8+ {0.00/53 2:08m} 66. Kf1 {0.00/75 0s} Rf8+ {0.00/57
3:50m} 67. Ke1 {0.00/80 0s} 1/2-1/2
I got this check if that is right.

Code: Select all

A. Players list:

Stockfish 8 4s
Komodo 10.2 4s

B. Ponder hit and miss table:

player           :   hit   miss  ratio  games  pts%
Stockfish 8 4s   :    44     17   2.59      1  50.0
Komodo 10.2 4s   :    42     19   2.21      1  50.0

file : ponder_game_with_book.pgn


Combining the 2 games in 1 file:

Code: Select all

A. Players list:

Stockfish 8 4s
Komodo 10.2
Stockfish 8
Komodo 10.2 4s

B. Ponder hit and miss table:

player           :   hit   miss  ratio  games  pts%
Stockfish 8      :    30     11   2.73      1  50.0
Stockfish 8 4s   :    44     17   2.59      1  50.0
Komodo 10.2      :    29     13   2.23      1  50.0
Komodo 10.2 4s   :    42     19   2.21      1  50.0

file : pg2.pgn
It is a python script, the input game notation should be converted to a 1 liner like the following.

[Event "90 Minutes/Game + 30 Seconds/Move"]
[Site "Engine Match"]
[Date "2016.10.13"]
[Round "1"]
[White "Komodo 10.2"]
[Black "Stockfish 8"]
[Result "1/2-1/2"]
[ECO "C08"]

1. e4 { +0.13/30 4:43m } 1... e6 { +0.08/33 3:36m (e5) } 2. d4 { +0.20/32 2:49m } 2... d5 .... one long line

[Event "90 Minutes/Game + 30 Seconds/Move"]
[Site "Engine Match"]
[Date "2016.11.08"]
[Round "1"]
[White "Stockfish 8 4s"]
[Black "Komodo 10.2 4s"]
[Result "1/2-1/2"]
[ECO "C65"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 Nf6 4. d4 Nxd4 5. Nxd4 c6 6. Bc4 { +0.12/35 5:08m } 6... exd4 { +0.10/30 3:40m } ... one long line.

This can be easily done with pgn-extract.

I am not using the python-chess modules (probably slower) so I need the pgn to be pre-processed.
IWB
Posts: 1539
Joined: Thu Mar 09, 2006 2:02 pm

Re: Ponder HIT / MISS rate detection?

Post by IWB »

Ferdy wrote:BTW which GUI created this notation output?
That is the Shredder Classic GUI and I think it is a 1-liner. It is the "copy and paste" + editor window here which make it look like this.

Ingo
IWB
Posts: 1539
Joined: Thu Mar 09, 2006 2:02 pm

Re: Ponder HIT / MISS rate detection?

Post by IWB »

The second game is 123 self played plys with 86 Ponder Hits, that is again 70% Ponder hit rate!


I will send a PM.

Thanks again
Ingo