diff options
| author | tslil clingman <tslil@posteo.de> | 2021-01-31 23:33:39 -0500 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 328c8d1e3094a942d6a2edd933c9cc4ab09daab1 (patch) | |
| tree | 21332661fb48c548b04d03d9a4131abe2070699a /src/pptdb.c | |
| parent | 399d90f1b94717aa0ca5abb1dc43bdb6f4160d13 (diff) | |
Just some #weightgoals ;)
It turns out that while i was training on a 0/1 classification
problem, i was using 2*eval - 1. Training using this function instead,
and on bot-dominated game choices (chosen_player in extract.sh) seems
to have given a better evaluation function. At the least, Morten's
swindle doesn't work anymore.
Diffstat (limited to 'src/pptdb.c')
| -rw-r--r-- | src/pptdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pptdb.c b/src/pptdb.c index ecf5caa..557b894 100644 --- a/src/pptdb.c +++ b/src/pptdb.c @@ -198,7 +198,7 @@ int main(int argc, char **argv) { reset_state(size); // Store the outcome of this game. Black win = 1 if (line[read-4] == '0') outcome_black = 1; - else outcome_black = 0; + else outcome_black = -1; // Parse the line r = parse_line(line,read-4); // Adjust counts if we're not generating training data |
