Skip to content

Commit

Permalink
Tune evaluation using new gradient descent tuner.
Browse files Browse the repository at this point in the history
  • Loading branch information
petur committed Sep 5, 2024
1 parent 80f5488 commit 195a861
Show file tree
Hide file tree
Showing 5 changed files with 672 additions and 624 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ out/
branches/
books/
samples/
filtered/
c-chess-cli.*.log
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ test: seawall
./test.sh

tune: seawall.tune
cat samples/*.csv | ./seawall.tune
./seawall.tune < filtered/20240903-174427.csv

seawall.tune: CPPFLAGS += -DTUNE=1
seawall.tune: RTTIFLAGS =
Expand Down
6 changes: 6 additions & 0 deletions filter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

mkdir -p filtered
sort -u -k 1,4 samples/2024*.csv | shuf > "filtered/$(date '+%Y%m%d-%H%M%S').csv"
7 changes: 4 additions & 3 deletions sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

set -e

branch=$(git branch --show-current)
#branch=$(git branch --show-current)
branch=main

c-chess-cli \
-engine cmd="./branches/seawall-${branch}" \
-engine cmd="./branches/seawall-main" \
-each option.Hash=4 tc=1+0.01 \
-openings file=./books/training.fen order=random \
-games 1500 -concurrency 6 \
-draw number=60 count=10 score=2 \
-sample freq=0.21 decay=0.016 resolve=y file="samples/$(date '+%Y%m%d-%H%M%S').csv" format=csv
-draw number=20 count=5 score=10 \
-sample freq=1 decay=0 resolve=y file="samples/$(date '+%Y%m%d-%H%M%S').csv" format=csv
Loading

0 comments on commit 195a861

Please sign in to comment.