ruicoelhopedro / pawn

An experimental UCI chess engine
GNU General Public License v3.0
10 stars 1 forks source link

PSQT .dat file has pawn structure patterns ? #14

Closed tissatussa closed 1 year ago

tissatussa commented 1 year ago

i was wondering .. your pawn is the only engine i know which has a (.dat) file concerning Piece-SQuare-Tables .. and i don't remember previous pawn versions had such .. i guess it's part of a next version.

the .dat file is no plain text - it will contain those tables .. or does pawn have some NN now ? Or pawn structure patterns and such ?

you might not want to fully tell us your code ideas, i know ..

ruicoelhopedro commented 1 year ago

That file contains all the weights for the recent dynamic PSQ tables introduced in #12. Since they are quite a lot of values, I have packed them into that binary file (which has the .dat extension, but could have been something else). You can interpret them as some sort of NN, yes.

you might not want to fully tell us your code ideas, i know ..

If that was the case, this project wouldn't be open source ;)

tissatussa commented 1 year ago

You can interpret them as some sort of NN, yes.

nice! are (only) self play games involved ?

ruicoelhopedro commented 1 year ago

nice! are (only) self play games involved ?

Yes, the training data is generated in self-play at a fixed shallow depth with some random moves to introduce diversity.

AlexBrunetti commented 1 year ago

You can interpret them as some sort of NN, yes.

This is an indexed table, as I can understand from the code; how can you call it a sort of NN?

Alex

ruicoelhopedro commented 1 year ago

In the sense that it contains the weights for a trained data-driven model used during evaluation. It's not an NN, but it is stored in a similar fashion as one would be.