1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 09:39:36 +00:00
BadFish/src
AndrovT 32d3284df5 Permute master net weights to increase sparsity
Activation data collection using ac468039ab run as

bench 16 1 13 varied_1000.epd depth NNUE log.bin

on FENs from https://gist.github.com/AndrovT/7eae6918eb50764227e2bafe7938953c.

Permutation found using https://gist.github.com/AndrovT/359c831b7223c637e9156b01eb96949e.
Uses a greedy algorithm that goes sequentially through the output positions and
chooses a neuron for that position such that the number of nonzero quartets is the smallest.

Net weights permuted using https://gist.github.com/AndrovT/9e3fbaebb7082734dc84d27e02094cb3.

Benchmark:

Result of 100 runs of 'bench 16 1 13 default depth NNUE'
========================================================
base (...kfish-master) =     885869  +/- 7395
test (./stockfish    ) =     895885  +/- 7368
diff                   =     +10016  +/- 2984

speedup        = +0.0113
P(speedup > 0) =  1.0000

Passed STC:
https://tests.stockfishchess.org/tests/view/648866c4713491385c804728
LLR: 2.94 (-2.94,2.94) <0.00,2.00>
Total: 126784 W: 34003 L: 33586 D: 59195
Ptnml(0-2): 283, 13001, 36437, 13358, 313

closes https://github.com/official-stockfish/Stockfish/pull/4620

No functional change.
2023-06-14 18:36:39 +02:00
..
incbin Change mode of incbin.h 2023-03-14 08:23:50 +01:00
nnue Fix for MSVC compilation. 2023-06-13 08:45:25 +02:00
syzygy Improve compatibility 2023-04-01 15:36:08 +02:00
benchmark.cpp Warn if a global function has no previous declaration 2023-01-09 20:18:39 +01:00
benchmark.h Warn if a global function has no previous declaration 2023-01-09 20:18:39 +01:00
bitbase.cpp Update copyright years 2023-01-02 19:07:38 +01:00
bitboard.cpp Remove precomputed SquareBB 2023-01-22 10:55:32 +01:00
bitboard.h Remove precomputed SquareBB 2023-01-22 10:55:32 +01:00
endgame.cpp Update copyright years 2023-01-02 19:07:38 +01:00
endgame.h Update copyright years 2023-01-02 19:07:38 +01:00
evaluate.cpp Remove optimism multiplier in nnue eval calculation 2023-06-06 21:21:56 +02:00
evaluate.h Permute master net weights to increase sparsity 2023-06-14 18:36:39 +02:00
main.cpp Update copyright years 2023-01-02 19:07:38 +01:00
Makefile Set the length of GIT_SHA to 8 characters 2023-04-22 10:38:25 +02:00
material.cpp Update copyright years 2023-01-02 19:07:38 +01:00
material.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
misc.cpp Fix linking / character types of windows API calls 2023-04-10 09:22:15 +02:00
misc.h Simplify away complexityAverage 2023-04-01 16:14:30 +02:00
movegen.cpp Fix capturing underpromotions issue 2023-04-12 20:38:43 +02:00
movegen.h Update copyright years 2023-01-02 19:07:38 +01:00
movepick.cpp Remove unneeded bitboard from MP 2023-04-05 08:10:34 +02:00
movepick.h Remove unneeded bitboard from MP 2023-04-05 08:10:34 +02:00
pawns.cpp Update copyright years 2023-01-02 19:07:38 +01:00
pawns.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
position.cpp Reintroduce SEE verification against discovered attacks 2023-06-11 15:13:57 +02:00
position.h Reintroduce SEE verification against discovered attacks 2023-06-11 15:13:57 +02:00
psqt.cpp Update copyright years 2023-01-02 19:07:38 +01:00
psqt.h Update copyright years 2023-01-02 19:07:38 +01:00
search.cpp Remove setting of static to none if in check in qsearch 2023-06-14 18:33:56 +02:00
search.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
thread.cpp Simplify away complexity in evaluation 2023-04-22 10:43:29 +02:00
thread.h Simplify away complexity in evaluation 2023-04-22 10:43:29 +02:00
thread_win32_osx.h Modernize code base a little bit 2023-01-09 20:25:13 +01:00
timeman.cpp Do no initialize TM in all cases 2023-04-10 10:56:42 +02:00
timeman.h Update copyright years 2023-01-02 19:07:38 +01:00
tt.cpp Use int conversion for Option class 2023-04-10 09:27:35 +02:00
tt.h Update copyright years 2023-01-02 19:07:38 +01:00
tune.cpp Update copyright years 2023-01-02 19:07:38 +01:00
tune.h Unify type alias declarations 2023-02-27 08:29:47 +01:00
types.h Fix null move issue 2023-03-19 11:25:48 +01:00
uci.cpp Update WLD model 2023-05-20 09:16:46 +02:00
uci.h Update WLD model 2023-05-20 09:16:46 +02:00
ucioption.cpp Use int conversion for Option class 2023-04-10 09:27:35 +02:00