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

Simplify and unify FRC cornered bishop #3413

Closed
wants to merge 1 commit into from

Conversation

mstembera
Copy link
Contributor

In #3405 (comment)
@snicolet suggested this simplification. I agree because in classical we give a larger penalty for a second blocking pawn on C3 but in NNUE we give a smaller penalty in the same situation.

I ran the below tests locally for patch vs master:
STC NNUE
9646 - 9647 - 20707 [0.500] 40000 -0.0 +/- 2.4, LOS: 49.7 %, DrawRatio: 51.8 %

STC classical
9678 - 9609 - 20713 [0.501] 40000 0.6 +/- 2.4, LOS: 69.0 %, DrawRatio: 51.8 %

I can run additional tests if requested but it would be nice if someone else could confirm no regression independently.

bench: 4321677

@snicolet
Copy link
Member

In the NNUE correction function, the signs are different for the black bishops in A8 and H8, compared to master?

@mstembera
Copy link
Contributor Author

@snicolet Ah, actually it's the A1 H1 signs I got wrong. I got confused when merging with the previous simplification. No change in bench. Thanks for catching that! I did the testing before the merger so no issue there. If you prefer to define CorneredBishopV to be negative and adjust everything accordingly just let me know.

@vondele
Copy link
Member

vondele commented Mar 27, 2021

For me the patch tests well (NNUE FRC):

Score of master vs patch: 6463 - 6580 - 34957 [0.499] 48000

@vondele vondele added the to be merged Will be merged shortly label Mar 27, 2021
@vondele vondele closed this in 62a0b65 Mar 27, 2021
MichaelB7 pushed a commit to MichaelB7/Stockfish that referenced this pull request Apr 13, 2021
tested locally as fishtest doesn't support FRC:

STC NNUE
9646 - 9647 - 20707 [0.500] 40000 -0.0 +/- 2.4, LOS: 49.7 %, DrawRatio: 51.8 %

STC classical
9678 - 9609 - 20713 [0.501] 40000 0.6 +/- 2.4, LOS: 69.0 %, DrawRatio: 51.8 %

and verified independently:

Score of master vs patch: 6463 - 6580 - 34957 [0.499] 48000

closes official-stockfish#3413

bench: 4321677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be merged Will be merged shortly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants