aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-09-03 20:17:22 +0100
committertslil <tslil@posteo.de>2026-09-04 21:03:59 +0100
commit1ca3309dad9d412870b2b793f33af7a7ccabd514 (patch)
tree15ce96557f04a7eded89193f12065dcd64c33ec8 /resources
parentf11793dc0fddfcaad04b89827634cbb40fa98e59 (diff)
TD-leaf and another negamax bug
TD-lambda and TD-leaf are separated by the observation that minimax with a parameterised leaf heuristic is differentiable* in the parameters. "All" that had to be done was to extract the "principal variation": which one position survived all of the pruning to become the reported value. This was a bit fiddly and uncovered a subtle bug (again) in negamax.c: we were not being complete in our overriding of the TT entry and by omitting key it was possible that later searches would find incorrect values. The more interesting question to me was: how do we introduce enough variety while not corrupting the PV chain? I settled on having selfplay have one of the players be epsilon-random but the other greedy (minimax) and simply report only the greedy portion PV chain. This appears to work well enough in practice and doesn't introduce nonsense training data for the net (we don't force its actions to be nonsensical). I also deciced, perhaps in a departure from tradition, that we had good supervised labels for PVs that happened to be winning states, so the training overrides the targets in that case. Finally rolled back some of the ambition in nn_train.py default arguments. *almost always
Diffstat (limited to 'resources')
-rwxr-xr-xresources/do_buildroot.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/do_buildroot.sh b/resources/do_buildroot.sh
index 9933469..83b57d3 100755
--- a/resources/do_buildroot.sh
+++ b/resources/do_buildroot.sh
@@ -13,7 +13,7 @@
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with Takwrap. If not, see <https://www.gnu.org/licenses/>.
+# along with ctak. If not, see <https://www.gnu.org/licenses/>.
BR="$1"
@@ -28,9 +28,9 @@ cp resources/post-build.sh resources/ct1986.sh resources/genimage-raspberrypi0.c
# Overlay filesystem
dirs="/usr/bin"
for dir in $dirs; do
- if [ ! -d "$overlay/$dir" ]; then
- mkdir -p "$overlay/$dir"
- fi
+ if [ ! -d "$overlay/$dir" ]; then
+ mkdir -p "$overlay/$dir"
+ fi
done
cd "$BR" && make