r/ComputerChess • u/[deleted] • Jun 08 '21
Really basic newbie question: is there a breakdown of Stockfish’e algorithm for assessing the position?
Like when you go from .3 to .1 with one move, or up to .5 with another? Obviously if you double your pawns or give up possession of a file, you’re going to get dinged. But what does the whole thing look like?
3
u/Spill_the_Tea Jun 08 '21
the 'eval' command is still available even with the neural net, which provides a cute summary of the current position.
2
u/dsjoerg Jun 09 '21
When I ran 'eval' I got this, which tells me a lot but nothing about the neural net. Are you aware of any command which gives any insight into the neural net part?
eval info string NNUE evaluation using nn-82215d0fd0df.nnue enabled Term | White | Black | Total | MG EG | MG EG | MG EG ------------+-------------+-------------+------------ Material | ---- ---- | ---- ---- | 0.00 0.00 Imbalance | ---- ---- | ---- ---- | 0.00 0.00 Pawns | 0.54 -0.12 | 0.54 -0.12 | 0.00 0.00 Knights | -0.02 -0.19 | -0.02 -0.19 | 0.00 0.00 Bishops | -0.03 -0.37 | -0.03 -0.37 | 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.83 -1.17 | -0.83 -1.17 | 0.00 0.00 King safety | 0.80 -0.05 | 0.80 -0.05 | 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.03 (white side) Final evaluation: 0.10 (white side)This does make it look like the classical and NNUE evals are being added together for the final decision, which, if that's correct, is very cool and I didn't realize that was happening.
1
u/backtickbot Jun 09 '21
1
1
u/Spill_the_Tea Jun 13 '21
Take a look at Gary's Repository, which is used to train the nnue, but also has tools to visualize the neural net if you are familiar with python scripting.
2
u/Jediplop Jun 08 '21
its a neural net, so basically a black box, no way to see the inside of it