Skip to content

Commit

Permalink
Update WDL Model for Berserk 13
Browse files Browse the repository at this point in the history
Bench: 3040242

Non-functional change
  • Loading branch information
jhonnold committed Mar 31, 2024
1 parent 787b2e1 commit 9439b87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ EXE = berserk
SRC = attacks.c bench.c berserk.c bits.c board.c eval.c history.c move.c movegen.c movepick.c perft.c random.c \
search.c see.c tb.c thread.c transposition.c uci.c util.c zobrist.c nn/accumulator.c nn/evaluate.c pyrrhic/tbprobe.c
CC = clang
VERSION = 20240329
VERSION = 13
MAIN_NETWORK = berserk-d43206fe90e4.nn
EVALFILE = $(MAIN_NETWORK)
DEFS = -DVERSION=\"$(VERSION)\" -DEVALFILE=\"$(EVALFILE)\" -DNDEBUG
Expand Down
4 changes: 2 additions & 2 deletions src/uci.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ SearchParams Limits;
// this repo: https://github.com/vondele/WLD_model

// Third order polynomial fit of Berserk data
const double as[4] = {-5.83465749, 46.43599644, -58.49798392, 172.62328616};
const double bs[4] = {-7.95320845, 48.50833438, -66.34647240, 56.29169197};
const double as[4] = {-2.02923586, 16.87641200, -27.06230207, 182.53858835};
const double bs[4] = {-6.15230497, 42.37548361, -80.19006222, 77.75994970};

// win% as permilli given score and ply
int WRModel(Score s, int ply) {
Expand Down
2 changes: 1 addition & 1 deletion src/uci.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern int CONTEMPT;
extern SearchParams Limits;

// Normalization of a score to 50% WR at 100cp
#define Normalize(s) ((s) / 1.54)
#define Normalize(s) ((s) / 1.70)

int WRModel(Score s, int ply);

Expand Down

0 comments on commit 9439b87

Please sign in to comment.