-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load (human) chess play data #1165
Comments
Something like OpenSpiel ParseSANMove would be really helpful. |
Hi, sorry for the late response and thank you for the request! Given your request, we added from pgx.experimental.chess import from_fen, to_fen
state = from_fen("k7/8/8/8/2N5/8/P7/7K w - - 0 1")
print(to_fen(state)) Note that they are still subject to (large) changes. You can use them by install pgx from latest main branch ( pip install git+ssh://[email protected]/sotetsuk/elf-opengo-jax.git or pip install git+https://github.com/sotetsuk/elf-opengo-jax.git |
Thank you, this is a really useful addition. One aspect that is still missing (please correct me if I'm wrong) though is an efficient way to also parse the moves themselves, like OpenSpiel's ParseSANMove. Of course these can be obtained by e.g. checking all potential moves and checking which ones match the FEN of the successive state, but it would be helpful to have a dedicated method for that. |
Hi! Thank you for your comment! I'll keep this PR open and contributions are welcome. |
Hi, first of all thank you very much for your work on Pgx!
I'm opening this issue because I am hoping to be able to leverage Pgx's
chess
environment for a project on scaling laws in RL. As part of this project, I would like to load some large scale supervised learning data (obtained from various sources, including Lichess, CCRL and a few others) for supervised training of an AlphaZero-like model which will later continue training through AlphaZero-like self-play as you implemented in one of the examples.I was wondering whether you have thoughts/advice/help when it comes to making that data (all in the form of PGN files) available for use with Pgx. Within the
chess
environment there are_from_fen
and_to_fen
, but according to this issue these are neither supposed to be exposed to the user nor well-tested. Further, the issue says that there are no plans for such a feature at the moment. For Go as far as I can tell there was interest in having such an option.How would you recommend an user make an existing PGN file usable for supervised learning in a format compatible with Pgx's? If there are no plans for such a feature I would really appreciate any help/advice/general tips or resources. Thanks!
The text was updated successfully, but these errors were encountered: