diff options
| author | tslil <tslil@posteo.de> | 2021-03-27 23:59:33 -0400 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-08-28 19:37:41 +0100 |
| commit | 35dc86f8476250f693aa419f404b2b4c8c381d92 (patch) | |
| tree | 678cd42cdbf0e46662dd2e71694e6c496d8e2279 /src/pptdb.c | |
| parent | 00a04c2929bdc8f8f4bf7d5d8cf413ebfb3cd006 (diff) | |
Playing around with huge nn's, poorly trained.sixes
Not great at shallow depths
Diffstat (limited to 'src/pptdb.c')
| -rw-r--r-- | src/pptdb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pptdb.c b/src/pptdb.c index 8684c47..c64ea2c 100644 --- a/src/pptdb.c +++ b/src/pptdb.c @@ -29,8 +29,6 @@ uint64_t heights[16]; FILE *training_fh = NULL; float max_flats, outcome_black; -const int max_depth = 6; - static void write_input(const int dx, const int dy, const uint8_t swap) { // Two numbers for flats remaining @@ -41,7 +39,7 @@ write_input(const int dx, const int dy, const uint8_t swap) { // Write the board layers float val; int col, row; - for (uint8_t depth = 0; depth < max_depth; depth++) { + for (uint8_t depth = 0; depth < board_size+1; depth++) { row = (dy>0)?-1:board_size; for (int i = 0; i < board_size; i++) { row += dy; @@ -136,7 +134,7 @@ parse_line(const char *pt, const ssize_t read) { } // Generate training data, not too early in the game, all // orientations - if (generate && ply + 3 >= total_plies) { + if (generate && ply < total_plies && ply + 2 >= total_plies) { #define RANDPM1 ((rand()&1)?-1:+1) write_input(RANDPM1, RANDPM1, rand()&1); } |
