Giter VIP home page Giter VIP logo

Comments (2)

fsmosca avatar fsmosca commented on June 21, 2024 2

Thanks for the info. That exe is based from the old py source. But even the latest chess_artist.py I see the error too. I need to modify the py source, since newer stockfish has changes on the eval command output.

sf13

ok

eval
info string NNUE evaluation using nn-62ef826d1a6d.nnue enabled

     Term    |    White    |    Black    |    Total
             |   MG    EG  |   MG    EG  |   MG    EG
 ------------+-------------+-------------+------------
    Material |  ----  ---- |  ----  ---- |  0.00  0.00
   Imbalance |  ----  ---- |  ----  ---- |  0.00  0.00
       Pawns |  0.38 -0.08 |  0.38 -0.08 |  0.00  0.00
     Knights | -0.02 -0.19 | -0.02 -0.19 |  0.00  0.00
     Bishops |  0.01 -0.41 |  0.01 -0.41 |  0.00  0.00
       Rooks | -0.26 -0.06 | -0.26 -0.06 |  0.00  0.00
      Queens |  0.00  0.00 |  0.00  0.00 |  0.00  0.00
    Mobility | -0.88 -1.15 | -0.88 -1.15 |  0.00  0.00
 King safety |  0.91 -0.10 |  0.91 -0.10 |  0.00  0.00
     Threats |  0.00  0.00 |  0.00  0.00 |  0.00  0.00
      Passed |  0.00  0.00 |  0.00  0.00 |  0.00  0.00
       Space |  0.40  0.00 |  0.40  0.00 |  0.00  0.00
    Winnable |  ----  ---- |  ----  ---- |  0.00  0.00
 ------------+-------------+-------------+------------
       Total |  ----  ---- |  ----  ---- |  0.00  0.00

Classical evaluation: 0.13 (white side)

NNUE evaluation:      0.27 (white side)

Final evaluation:     0.48 (white side)

sf14

not ok

eval
info string NNUE evaluation using nn-3475407dc199.nnue enabled

 Contributing terms for the classical eval:
+------------+-------------+-------------+-------------+
|    Term    |    White    |    Black    |    Total    |
|            |   MG    EG  |   MG    EG  |   MG    EG  |
+------------+-------------+-------------+-------------+
|   Material |  ----  ---- |  ----  ---- |  0.00  0.00 |
|  Imbalance |  ----  ---- |  ----  ---- |  0.00  0.00 |
|      Pawns |  0.38 -0.08 |  0.38 -0.08 |  0.00  0.00 |
|    Knights | -0.02 -0.19 | -0.02 -0.19 |  0.00  0.00 |
|    Bishops |  0.01 -0.41 |  0.01 -0.41 |  0.00  0.00 |
|      Rooks | -0.26 -0.06 | -0.26 -0.06 |  0.00  0.00 |
|     Queens |  0.00  0.00 |  0.00  0.00 |  0.00  0.00 |
|   Mobility | -0.88 -1.15 | -0.88 -1.15 |  0.00  0.00 |
|King safety |  0.91 -0.10 |  0.91 -0.10 |  0.00  0.00 |
|    Threats |  0.00  0.00 |  0.00  0.00 |  0.00  0.00 |
|     Passed |  0.00  0.00 |  0.00  0.00 |  0.00  0.00 |
|      Space |  0.40  0.00 |  0.40  0.00 |  0.00  0.00 |
|   Winnable |  ----  ---- |  ----  ---- |  0.00  0.00 |
+------------+-------------+-------------+-------------+
|      Total |  ----  ---- |  ----  ---- |  0.00  0.00 |
+------------+-------------+-------------+-------------+

 NNUE derived piece values:
+-------+-------+-------+-------+-------+-------+-------+-------+
|   r   |   n   |   b   |   q   |   k   |   b   |   n   |   r   |
| -8.00 | -6.75 | -6.98 | -13.6 |       | -7.03 | -6.77 | -8.04 |
+-------+-------+-------+-------+-------+-------+-------+-------+
|   p   |   p   |   p   |   p   |   p   |   p   |   p   |   p   |
| -0.83 | -1.40 | -1.44 | -1.63 | -1.48 | -2.06 | -1.85 | -0.83 |
+-------+-------+-------+-------+-------+-------+-------+-------+
|       |       |       |       |       |       |       |       |
|       |       |       |       |       |       |       |       |
+-------+-------+-------+-------+-------+-------+-------+-------+
|       |       |       |       |       |       |       |       |
|       |       |       |       |       |       |       |       |
+-------+-------+-------+-------+-------+-------+-------+-------+
|       |       |       |       |       |       |       |       |
|       |       |       |       |       |       |       |       |
+-------+-------+-------+-------+-------+-------+-------+-------+
|       |       |       |       |       |       |       |       |
|       |       |       |       |       |       |       |       |
+-------+-------+-------+-------+-------+-------+-------+-------+
|   P   |   P   |   P   |   P   |   P   |   P   |   P   |   P   |
| +0.62 | +1.19 | +1.13 | +1.17 | +1.20 | +1.55 | +1.44 | +0.50 |
+-------+-------+-------+-------+-------+-------+-------+-------+
|   R   |   N   |   B   |   Q   |   K   |   B   |   N   |   R   |
| +7.81 | +6.17 | +6.68 | +11.4 |       | +6.63 | +6.14 | +7.60 |
+-------+-------+-------+-------+-------+-------+-------+-------+

 NNUE network contributions (White to move)
+------------+------------+------------+------------+
|   Bucket   |  Material  | Positional |   Total    |
|            |   (PSQT)   |  (Layers)  |            |
+------------+------------+------------+------------+
|  0         |     0.00   |  -  1.08   |  -  1.08   |
|  1         |     0.00   |  +  1.52   |  +  1.52   |
|  2         |     0.00   |  +  0.60   |  +  0.60   |
|  3         |     0.00   |  +  0.52   |  +  0.52   |
|  4         |     0.00   |  +  0.32   |  +  0.32   |
|  5         |     0.00   |  +  0.19   |  +  0.19   |
|  6         |     0.00   |  +  0.12   |  +  0.12   |
|  7         |     0.00   |  +  0.08   |  +  0.08   | <-- this bucket is used
+------------+------------+------------+------------+


Classical evaluation   +0.00 (white side)
NNUE evaluation        +0.08 (white side)
Final evaluation       +0.16 (white side) [with scaled NNUE, hybrid, ...]

Error messge

  File "F:\Project\my_pyinstaller\chess_artist.py", line 2089, in AnnotatePgn
    self.passedPawnIsGood = self.IsPassedPawnGood(
  File "F:\Project\my_pyinstaller\chess_artist.py", line 1045, in IsPassedPawnGood
    MgPassedValue = float(passedPawnComment.split()[8])
ValueError: could not convert string to float: '|'

I also stop converting latest chess_artist.py to exe as some anti-virus softwares are flagging the resulting exe created by pyinstaller as malicious.

from chess-artist.

fsmosca avatar fsmosca commented on June 21, 2024 2

Fixed in 8a67d08.

[Event "Skilling Open Prelim"]
[Site "chess24.com INT"]
[Date "2020.11.23"]
[Round "8.4"]
[White "Ding, Liren"]
[Black "Carlsen, Magnus"]
[Result "1/2-1/2"]
[Annotator "engine: Stockfish 14, program: Chess Artist v3.1.0"]
[BlackElo "2862"]
[BlackFideId "1503014"]
[BlackTitle "GM"]
[ECO "E10"]
[EventDate "2020.11.22"]
[Opening "QGD"]
[Variation "4.Nf3"]
[WhiteElo "2791"]
[WhiteFideId "8603677"]
[WhiteTitle "GM"]

{ Hash 256mb, Threads 1, analysis 0.1s per position, move score is in pawn unit, positive is good for white and negative is good for black } 1.d4 Nf6 2.c4 e6 3.Nf3 d5 4.Nc3 h6 5.Bf4 Bd6 6.Bxd6 Qxd6 7.e3 O-O 8.Rc1 b6 9.cxd5 Nxd5 10.Nxd5 Qxd5 11.a3 Qd6 12.Qc2 { +1.62, with a better piece mobility } 12...c6 { +1.62 } 13.Qe4 { +1.44 } 13...Qd5 { +1.75 } 14.Bd3 $2 { +1.45 } ( 14.Qxd5 { +1.75 } ) 14...Qxe4 { +1.65 } 15.Bxe4 { +1.54 } 15...Bb7 { +1.50 } 16.Ne5 { +1.45 } 16...f6 { +1.65 } 17.Ng6 { +1.50, with a better king safety } 17...Rd8 { +1.52 } 18.Nf4 $2 { +0.86 } ( 18.f4 Kf7 19.b4 a6 20.f5 { +1.52 } ) 18...Rd6 { +0.61 } 19.O-O $1 { +0.90 } ( 19.Ng6 Nd7 20.h4 Kf7 21.f4 { +0.61 } ) 19...Nd7 { +0.65 } 20.Rc3 $2 { +0.25 } ( 20.Ng6 Kf7 21.f4 Rc8 22.Ne5+ { +0.87 } ) 20...Rd8 { +0.29 } ( 20...e5 { +0.25 } ) 21.Rfc1 e5 22.dxe5 Nxe5 23.h3 Rd1+ 24.Kh2 Rxc1 25.Rxc1 Rd6 26.Ng6 Nxg6 27.Bxg6 Kf8 28.Be4 Rd2 29.Bxc6 Bxc6 30.Rxc6 Rxf2 31.b4 Re2 32.Rc8+ Kf7 33.Rc7+ Kg6 34.Rxa7 Rxe3 35.a4 Ra3 36.a5 bxa5 37.bxa5 f5 38.a6 f4 39.Ra8 Ra2 40.Rf8 Rxa6 41.Rxf4 Rf6 42.Kg3 Rxf4 43.Kxf4 Kf6 44.g4 g5+ 45.Ke4 Ke6 46.Kd4 Kd6 47.Ke4 Ke6 48.Kd4 Kd6 49.Ke4 Ke6 { WhiteBlunder=0, BlackBlunder=0, WhiteBad=3, BlackBad=0 } 1/2-1/2

from chess-artist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.