Skip to content
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

Adding a SwapColors option to explicitly swap colors in input encoding e.g. for knight odds #2079

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Naphthalin
Copy link
Contributor

Main application case for now is that when using a net trained from asymmetric training games (e.g. knight odds), this asymmetry will make use of the color to move input plane. Switching sides (so, using the knight odds net with black being a knight down) isn't easily possible since the NN still thinks white is the stronger player. This PR adds an option for pretending to be playing as the opposite color when sending positions to the NN, which might also be interesting for studying the learned white advantage bias in Lc0 nets, but most importantly for playing knight odds and similar as black.

@Naphthalin Naphthalin added enhancement New feature or request not for merge Experimental code which is not intended to be merged into the master labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not for merge Experimental code which is not intended to be merged into the master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant