Comments (7)
Looks like the game scores are wpov. The output table in evalswing is spov. So I need to convert those scores from wpov to spov.
I will just add a flag --wpov and default would be spov.
GUI/CLI score pov output
gui | score pov |
---|---|
winboard | spov ✓ |
cutechess | spov ✓ |
tcec | wpov ✓ |
lichess | wpov ✓ |
shredder | wpov |
chessbase | wpov |
arena | spov |
from python-chess-scripts.
Testing
python eval_swing.py --input ./FCPT2021/FCPT2021.pgn --wpov
# White Black Res WMaxMove WMaxEval WMinMove WMinEval BMaxMove BMaxEval BMinMove BMinEval
1 Critter 1.6a x64 Xiphos 0.6 BMI2 x64 1/2-1/2 17 0.11 25 0 19 -0 18 -0.35
2 Fizbo 2.0 BMI2 x64 Texel 1.08a13 BMI2 x64 1/2-1/2 24 0.35 18 -0.72 15 1.14 26 -0.06
3 Booot 6.4 POPCNT x64 pirarucu 3.3.5 JAVA x64 1-0 - - 10 0.29 12 -0 - -
4 Dragon by Komodo NN AVX2 x64 Vajolet2 2.8 BMI2 x64 1-0 - - 17 0.16 16 0.33 - -
5 Arasan 22.2 BMI2 x64 rofChade 2.3 BMI2 x64 1-0 - - 8 0.39 13 0.01 - -
6 Ethereal 12.75 PEXT x64 Topple 0.8.0 Modern x64 1-0 - - 10 0.94 69 319.98 - -
7 Chiron 4 x64 iCE 4.0 v853 Modern x64 1/2-1/2 13 0.04 26 -0.37 28 0.92 60 -0.75
8 Demolito 2020-12-24 PEXT x64 Wasp 4.50 Modern x64 0-1 32 1.43 - - - - 35 -1
9 Combusken 1.4.0 AMD x64 chess22k 1.14 JAVA x64 1-0 - - 9 -0.04 42 -0 - -
10 Halogen 9 NN PEXT x64 Shredder 13 POPCNT x64 0-1 18 0.78 - - - - 6 -0.11
11 GullChess 3.0 Sy BMI2 x64 SlowChess Blitz 2.4 NN x64 0-1 17 0.97 - - - - 17 -0.76
12 Igel 2.9.0 NN BMI2 x64 Seer 1.2.1 NN Skylake x64 1-0 - - 31 0 18 0.4 - -
13 Laser 1.7 BMI2 x64 RubiChess 1.9 NN BMI2 x64 1-0 - - 11 -0.29 27 1.04 - -
14 Lc0 0.26.3 NN CPU x64 Protector 1.9.0 x64 1-0 - - 11 0.26 15 -0.19 - -
15 Marvin 4.0.1 POPCNT x64 Pedone 3.0 NN BMI2 x64 1/2-1/2 16 0.05 27 -0.86 29 0.88 15 -0
16 rofChade 2.3 BMI2 x64 Andscacs 0.95.123 x64 1/2-1/2 20 0.52 31 -0.01 34 -0 20 -0.64
17 Fritz 17 (Ginkgo) x64 Sf 2020-12-31_18 NN BMI2 x64 0-1 18 0.54 - - - - 9 -0.13
18 Koivisto 4.19 AVX x64 Schooner 2.2 XB SSE x64 1/2-1/2 38 0.59 27 -0.1 26 0.08 17 -0.52
19 Nemorino 6.04 NN PEXT x64 Nirvanachess 2.5 POPCNT x64 1-0 - - 10 0.09 13 0.26 - -
20 Fritz 17 (Ginkgo) x64 Sf 2020-12-31_18 NN BMI2 x64 0-1 18 0.54 - - - - 9 -0.13
Much better but there is still weird score in game 6.
from python-chess-scripts.
I see. Move 69 has nothing attached so it tries eval from the move before, but that gets not inverted it seems?
Testing
python eval_swing.py --input ./FCPT2021/FCPT2021.pgn --wpov
# White Black Res WMaxMove WMaxEval WMinMove WMinEval BMaxMove BMaxEval BMinMove BMinEval
6 Ethereal 12.75 PEXT x64 Topple 0.8.0 Modern x64 1-0 - - 10 0.94 69 319.98 - -
Much better but there is still weird score in game 6.
from python-chess-scripts.
Right, another test after a fix.
# White Black Res WMaxMove WMaxEval WMinMove WMinEval BMaxMove BMaxEval BMinMove BMinEval
1 Critter 1.6a x64 Xiphos 0.6 BMI2 x64 1/2-1/2 17 0.11 25 0 19 -0 18 -0.35
2 Fizbo 2.0 BMI2 x64 Texel 1.08a13 BMI2 x64 1/2-1/2 24 0.35 18 -0.72 15 1.14 26 -0.06
3 Booot 6.4 POPCNT x64 pirarucu 3.3.5 JAVA x64 1-0 - - 10 0.29 12 -0 - -
4 Dragon by Komodo NN AVX2 x64 Vajolet2 2.8 BMI2 x64 1-0 - - 17 0.16 16 0.33 - -
5 Arasan 22.2 BMI2 x64 rofChade 2.3 BMI2 x64 1-0 - - 8 0.39 13 0.01 - -
6 Ethereal 12.75 PEXT x64 Topple 0.8.0 Modern x64 1-0 - - 10 0.94 21 -0.1 - -
7 Chiron 4 x64 iCE 4.0 v853 Modern x64 1/2-1/2 13 0.04 26 -0.37 28 0.92 60 -0.75
8 Demolito 2020-12-24 PEXT x64 Wasp 4.50 Modern x64 0-1 32 1.43 - - - - 35 -1
9 Combusken 1.4.0 AMD x64 chess22k 1.14 JAVA x64 1-0 - - 9 -0.04 42 -0 - -
10 Halogen 9 NN PEXT x64 Shredder 13 POPCNT x64 0-1 18 0.78 - - - - 6 -0.11
11 GullChess 3.0 Sy BMI2 x64 SlowChess Blitz 2.4 NN x64 0-1 17 0.97 - - - - 17 -0.76
12 Igel 2.9.0 NN BMI2 x64 Seer 1.2.1 NN Skylake x64 1-0 - - 31 0 18 0.4 - -
13 Laser 1.7 BMI2 x64 RubiChess 1.9 NN BMI2 x64 1-0 - - 11 -0.29 27 1.04 - -
14 Lc0 0.26.3 NN CPU x64 Protector 1.9.0 x64 1-0 - - 11 0.26 15 -0.19 - -
15 Marvin 4.0.1 POPCNT x64 Pedone 3.0 NN BMI2 x64 1/2-1/2 16 0.05 27 -0.86 29 0.88 15 -0
16 rofChade 2.3 BMI2 x64 Andscacs 0.95.123 x64 1/2-1/2 20 0.52 31 -0.01 34 -0 20 -0.64
17 Fritz 17 (Ginkgo) x64 Sf 2020-12-31_18 NN BMI2 x64 0-1 18 0.54 - - - - 9 -0.13
18 Koivisto 4.19 AVX x64 Schooner 2.2 XB SSE x64 1/2-1/2 38 0.59 27 -0.1 26 0.08 17 -0.52
19 Nemorino 6.04 NN PEXT x64 Nirvanachess 2.5 POPCNT x64 1-0 - - 10 0.09 13 0.26 - -
20 Fritz 17 (Ginkgo) x64 Sf 2020-12-31_18 NN BMI2 x64 0-1 18 0.54 - - - - 9 -0.13
from python-chess-scripts.
Looks good now, just noticed something aesthetically right now. Can you force that the two digits remain there?
Probably the chess library simplifies by removing zeros at the end?
from python-chess-scripts.
How about this. The 0 is now 0.00 and -1 is now -1.00. But the eval values with value -
is now Nan.
I generate this table using pandas, could not make NaN into -
because the -1.00 will become -1 again and 0.00 will become 0.
# White Black Res WMaxMove WMaxEval WMinMove WMinEval BMaxMove BMaxEval BMinMove BMinEval
1 Critter 1.6a x64 Xiphos 0.6 BMI2 x64 1/2-1/2 17 0.11 25 0.00 19 0.00 18 -0.35
2 Fizbo 2.0 BMI2 x64 Texel 1.08a13 BMI2 x64 1/2-1/2 24 0.35 18 -0.72 15 1.14 26 -0.06
3 Booot 6.4 POPCNT x64 pirarucu 3.3.5 JAVA x64 1-0 - NaN 10 0.29 12 0.00 - NaN
4 Dragon by Komodo NN AVX2 x64 Vajolet2 2.8 BMI2 x64 1-0 - NaN 17 0.16 16 0.33 - NaN
5 Arasan 22.2 BMI2 x64 rofChade 2.3 BMI2 x64 1-0 - NaN 8 0.39 13 0.01 - NaN
6 Ethereal 12.75 PEXT x64 Topple 0.8.0 Modern x64 1-0 - NaN 10 0.94 21 -0.10 - NaN
7 Chiron 4 x64 iCE 4.0 v853 Modern x64 1/2-1/2 13 0.04 26 -0.37 28 0.92 60 -0.75
8 Demolito 2020-12-24 PEXT x64 Wasp 4.50 Modern x64 0-1 32 1.43 - NaN - NaN 35 -1.00
9 Combusken 1.4.0 AMD x64 chess22k 1.14 JAVA x64 1-0 - NaN 9 -0.04 42 0.00 - NaN
10 Halogen 9 NN PEXT x64 Shredder 13 POPCNT x64 0-1 18 0.78 - NaN - NaN 6 -0.11
11 GullChess 3.0 Sy BMI2 x64 SlowChess Blitz 2.4 NN x64 0-1 17 0.97 - NaN - NaN 17 -0.76
12 Igel 2.9.0 NN BMI2 x64 Seer 1.2.1 NN Skylake x64 1-0 - NaN 31 0.00 18 0.40 - NaN
13 Laser 1.7 BMI2 x64 RubiChess 1.9 NN BMI2 x64 1-0 - NaN 11 -0.29 27 1.04 - NaN
14 Lc0 0.26.3 NN CPU x64 Protector 1.9.0 x64 1-0 - NaN 11 0.26 15 -0.19 - NaN
15 Marvin 4.0.1 POPCNT x64 Pedone 3.0 NN BMI2 x64 1/2-1/2 16 0.05 27 -0.86 29 0.88 15 0.00
16 rofChade 2.3 BMI2 x64 Andscacs 0.95.123 x64 1/2-1/2 20 0.52 31 -0.01 34 0.00 20 -0.64
17 Fritz 17 (Ginkgo) x64 Sf 2020-12-31_18 NN BMI2 x64 0-1 18 0.54 - NaN - NaN 9 -0.13
18 Koivisto 4.19 AVX x64 Schooner 2.2 XB SSE x64 1/2-1/2 38 0.59 27 -0.10 26 0.08 17 -0.52
19 Nemorino 6.04 NN PEXT x64 Nirvanachess 2.5 POPCNT x64 1-0 - NaN 10 0.09 13 0.26 - NaN
20 Fritz 17 (Ginkgo) x64 Sf 2020-12-31_18 NN BMI2 x64 0-1 18 0.54 - NaN - NaN 9 -0.13
from python-chess-scripts.
Ok, I understand. I have no problem with this solution.
How about this. The 0 is now 0.00 and -1 is now -1.00. But the eval values with value
-
is now Nan.I generate this table using pandas, could not make NaN into
-
because the -1.00 will become -1 again and 0.00 will become 0.# White Black Res WMaxMove WMaxEval WMinMove WMinEval BMaxMove BMaxEval BMinMove BMinEval 1 Critter 1.6a x64 Xiphos 0.6 BMI2 x64 1/2-1/2 17 0.11 25 0.00 19 0.00 18 -0.35 2 Fizbo 2.0 BMI2 x64 Texel 1.08a13 BMI2 x64 1/2-1/2 24 0.35 18 -0.72 15 1.14 26 -0.06 3 Booot 6.4 POPCNT x64 pirarucu 3.3.5 JAVA x64 1-0 - NaN 10 0.29 12 0.00 - NaN
from python-chess-scripts.
Related Issues (13)
- Add option for eval and time plots background color
- Plotting only pre-selected games [pgn_graph] (enhancement) HOT 6
- Skip depth 1 evals [pgn_graph + eval_swing] HOT 5
- Playchess-Games-Machines HOT 5
- Is it possible to do this? Program takes a game , and adds PGN headers with the computed "Eval" for each player. Preserves a game with the added headers. HOT 10
- Adding depths to time plot?
- Add option to limit the plot to certain move numbers
- The bugfix for setting width/height introduced some problems HOT 2
- Create images in a separate folder in the pgn dir (Enhancement) HOT 2
- Issues with missing eval/depth and only time savings for easy/forced moves HOT 2
- Extending for WB pgn files (enhancement) HOT 10
- Extending for (already analyzed) Lichess games? (enhancement) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-chess-scripts.