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

Several small optimizations #587

Merged
merged 14 commits into from
Feb 10, 2024
Merged

Several small optimizations #587

merged 14 commits into from
Feb 10, 2024

Conversation

brunocodutra
Copy link
Owner

@brunocodutra brunocodutra commented Jan 20, 2024

Gauntlet

cutechess-cli -tournament gauntlet -games 2 -rounds 1500 -openings file=engines/openings-6ply-1000.pgn plies=6 policy=round -concurrency 8 -ratinginterval 10 -resultformat wide -recover -engine conf=dev -engine conf=Nalwald-18 -engine conf=Counter-5.0 -engine conf=StockNemo-5.7 -each tc=3+0.025

Rank Name                          Elo     +/-   Games    Wins  Losses   Draws   Points   Score    Draw
   0 dev                            58       6    9000    3531    2040    3429   5245.5   58.3%   38.1%
   1 Nalwald-18                    -28       9    3000     735     977    1288   1379.0   46.0%   42.9%
   2 Counter-5.0                   -53      10    3000     765    1222    1013   1271.5   42.4%   33.8%
   3 StockNemo-5.7                 -94      10    3000     540    1332    1128   1104.0   36.8%   37.6%

STS1-STS15_LAN_v6.epd

python sts_rating.py -f "./epd/STS1-STS15_LAN_v6.epd" -e dev -t 8 --movetime 100 --maxpoint 100

STS Rating v14.2
Engine: chessboard
Hash: 32, Threads: 8, time/pos: 0.100s

Number of positions in ./epd/STS1-STS15_LAN_v6.epd: 1188
Max score = 1188 x 100 = 118800
Test duration: 00h:02m:03s
Expected time to finish: 00h:02m:34s

  STS ID   STS1   STS2   STS3   STS4   STS5   STS6   STS7   STS8   STS9  STS10  STS11  STS12  STS13  STS14  STS15    ALL
  NumPos     85     80     86     89     85     80     82     80     71     79     70     74     75     79     73   1188
 BestCnt     66     54     64     71     64     55     54     49     45     61     53     59     60     54     48    857
   Score   7763   6815   7499   8202   7643   7664   7083   6542   5881   7293   6414   6863   6661   6825   6356 105504
Score(%)   91.3   85.2   87.2   92.2   89.9   95.8   86.4   81.8   82.8   92.3   91.6   92.7   88.8   86.4   87.1   88.8

:: STS ID and Titles ::
STS 01: Undermining
STS 02: Open Files and Diagonals
STS 03: Knight Outposts
STS 04: Square Vacancy
STS 05: Bishop vs Knight
STS 06: Re-Capturing
STS 07: Offer of Simplification
STS 08: Advancement of f/g/h Pawns
STS 09: Advancement of a/b/c Pawns
STS 10: Simplification
STS 11: Activity of the King
STS 12: Center Control
STS 13: Pawn Play in the Center
STS 14: Queens and Rooks to the 7th rank
STS 15: Avoid Pointless Exchange

:: Top 5 STS with high result ::
1. STS 06, 95.8%, "Re-Capturing"
2. STS 12, 92.7%, "Center Control"
3. STS 10, 92.3%, "Simplification"
4. STS 04, 92.2%, "Square Vacancy"
5. STS 11, 91.6%, "Activity of the King"

:: Top 5 STS with low result ::
1. STS 08, 81.8%, "Advancement of f/g/h Pawns"
2. STS 09, 82.8%, "Advancement of a/b/c Pawns"
3. STS 02, 85.2%, "Open Files and Diagonals"
4. STS 07, 86.4%, "Offer of Simplification"
5. STS 14, 86.4%, "Queens and Rooks to the 7th rank"

@brunocodutra brunocodutra force-pushed the codegen branch 2 times, most recently from 33a4a6d to 0a8b7e5 Compare January 28, 2024 19:57
@brunocodutra brunocodutra force-pushed the codegen branch 6 times, most recently from e93abef to b8f9ece Compare February 6, 2024 22:33
@brunocodutra brunocodutra changed the title A few small optimizations Several small optimizations Feb 8, 2024
Copy link

codecov bot commented Feb 10, 2024

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (b209d4e) 91.09% compared to head (8eaad51) 91.44%.

Files Patch % Lines
lib/chess/position.rs 89.18% 4 Missing ⚠️
lib/nnue/evaluator.rs 80.00% 3 Missing ⚠️
lib/nnue.rs 93.33% 1 Missing ⚠️
lib/nnue/feature.rs 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #587      +/-   ##
==========================================
+ Coverage   91.09%   91.44%   +0.34%     
==========================================
  Files          38       36       -2     
  Lines        1191     1181      -10     
==========================================
- Hits         1085     1080       -5     
+ Misses        106      101       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brunocodutra brunocodutra marked this pull request as ready for review February 10, 2024 17:58
@brunocodutra brunocodutra enabled auto-merge (rebase) February 10, 2024 18:01
@brunocodutra brunocodutra merged commit fd59d14 into master Feb 10, 2024
18 checks passed
@brunocodutra brunocodutra deleted the codegen branch February 10, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant