aboutsummaryrefslogtreecommitdiff
path: root/include/nn1986.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2023-01-15 16:03:37 +0100
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commitee216c008a188a9436fedb85c70ee5d1719733b1 (patch)
treef1d8fa5efd71851dd4f8d3e2b26b1f95a6086cb9 /include/nn1986.h
parent7cf3a656d0c923dd92025c09747461f2f2d1bed0 (diff)
new neural network arch (faster + better) & minor changes + fixes
Gone is the convolutional neural network, for it turns out not only is it more difficult to train, but all of the extra information about board layers didn't make much of a difference at this size. So cnn1986 has been replaced by nn1986, a standard, two-layer, dense nn configured as a binary classifier and (mis)used in that capacity. Note: total number of parameters is unchanged. HARK: this new nn exposes a bug somewhere in ctak. Run ctlm with self-play to see the completely borked board state at the end.
Diffstat (limited to 'include/nn1986.h')
-rw-r--r--include/nn1986.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/nn1986.h b/include/nn1986.h
new file mode 100644
index 0000000..4e99ac2
--- /dev/null
+++ b/include/nn1986.h
@@ -0,0 +1,20 @@
+/*
+ This file is part of ct.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with ct. If not, see <https://www.gnu.org/licenses/>.
+*/
+
+#include <tak.h>
+
+float nn1986_evaluate_black_win(void);