Tomasz Sobczyk
0b33978e02
Merge pull request #320 from Sopel97/fix_stats_docs
...
Fix stats.md docs.
2021-04-05 18:54:53 +02:00
Tomasz Sobczyk
a93777c4ed
Fix stats.md docs.
2021-04-05 18:54:31 +02:00
Tomasz Sobczyk
ad24a8d2b4
Merge pull request #319 from Sopel97/more_stats
...
More stats
2021-04-05 18:51:27 +02:00
Tomasz Sobczyk
9dac979ce8
Update docs
2021-04-05 17:37:15 +02:00
Tomasz Sobczyk
f8d9836ca3
Use an ordered container for the results.
2021-04-05 17:30:38 +02:00
Tomasz Sobczyk
1786be5553
Minor fixes
2021-04-05 17:30:36 +02:00
Tomasz Sobczyk
e371d133a7
Fix grouping and do dedup in registry.
2021-04-05 17:25:28 +02:00
Tomasz Sobczyk
e7b3803fd0
Add more counters
2021-04-05 17:00:27 +02:00
Tomasz Sobczyk
fcd53684b6
To/from move stats
2021-04-05 16:43:25 +02:00
Tomasz Sobczyk
b2a5bf4171
Deduplicate statistic gatherers. Fix King square counter compilation errors.
2021-04-05 16:36:27 +02:00
Tomasz Sobczyk
eda51f19a2
Add king square counter
2021-04-05 16:15:37 +02:00
Tomasz Sobczyk
570a0f6f3c
Per square stats utility
2021-04-05 16:12:47 +02:00
Tomasz Sobczyk
7d74185d0b
Add max_count parameter to limit the number of positions read.
2021-04-05 14:21:25 +02:00
Tomasz Sobczyk
f85dbc3fe3
Reorder code and add important comments.
2021-04-05 14:21:25 +02:00
Tomasz Sobczyk
f69946cd0b
Merge pull request #317 from fsmosca/3fold_rep_termination
...
Fix segfault and end the game by 3-fold repetitions
2021-04-05 12:39:21 +02:00
Tomasz Sobczyk
8144fc54fc
Merge pull request #318 from Sopel97/revert_shit
...
Revert "Add additional checks for en-passant possiblity when fixing the erroneus ep flag from a fen."
2021-04-05 12:39:13 +02:00
Tomasz Sobczyk
8365109972
Revert "Add additional checks for en-passant possiblity when fixing the erroneus ep flag from a fen."
...
This reverts commit 6afcdaa928 .
2021-04-05 12:37:11 +02:00
fsmosca
560daefb01
Update position.h
...
* Add is_fifty_move_draw() and is_three_fold_repetition for gensfen()
2021-04-05 13:31:49 +08:00
fsmosca
f57af4d203
Update position.cpp
...
* Add is_fifty_move_draw() and is_three_fold_repetition for gensfen()
2021-04-05 13:31:21 +08:00
fsmosca
5bb6cdf7ba
Update gensfen.cpp
...
* Terminate game by 3-fold repetition.
* Fix segmentation fault by properly initializing the random_multi_pv_depth.
2021-04-05 13:29:49 +08:00
Tomasz Sobczyk
6afcdaa928
Add additional checks for en-passant possiblity when fixing the erroneus ep flag from a fen.
2021-04-03 23:17:55 +09:00
Tomasz Sobczyk
876902070d
Add optional warmup step for training.
...
Specified with `warmup_epochs`, uses `warmup_lr`.
The purpose is to put the net into a somewhat stable state so that the gradients are not as high during the early stages of the training and don't "accidentally" break the net.
2021-03-26 00:26:41 +09:00
Tomasz Sobczyk
bbe338b9fc
Add random move accuracy for comparison.
2021-03-25 22:06:46 +09:00
Tomasz Sobczyk
5fdb48a7cb
Change some learn parameter naming. Update docs.
2021-03-14 22:15:16 +09:00
Tomasz Sobczyk
591609c262
Fix relation between halfmove and fullmove clocks.
2021-03-14 22:01:01 +09:00
QuackQuackBlah
03b888e118
Update gensfen_nonpv.md
...
Fixes typo.
2021-03-09 14:25:27 +09:00
Tomasz Sobczyk
0ddad45ab2
Add gather_statistics command that allows gathering statistics from a .bin or .binpack file. Initially only support position count.
2021-03-01 00:36:45 +09:00
Tomasz Sobczyk
b68cd36708
http://talkchess.com/forum3/viewtopic.php?f=2&t=76736&p=885254#p885254
2021-02-28 23:28:12 +09:00
Tomasz Sobczyk
74774c36e1
Fix wrong multipv depth range. Fixes #291
2021-01-25 21:39:22 +09:00
Tomasz Sobczyk
1f7e5d3861
Add thread sanitized run for instrumented_learn and fix races.
2020-12-28 16:08:34 +09:00
Tomasz Sobczyk
acf95c7c98
Accumulate clipping statistics to a 64 bit integer to prevent overflow for larger batch sizes.
2020-12-25 10:04:28 +09:00
Tomasz Sobczyk
1b560efabd
Correctly handle the last batch of data in sfen_reader
2020-12-25 10:03:24 +09:00
Tomasz Sobczyk
6d28d97a91
Don't unload evalfile on set nnue false
2020-12-25 09:58:24 +09:00
Tomasz Sobczyk
c1e69f450e
Prevent q_ in loss calculation from reaching values that would produce NaN
2020-12-25 00:41:31 +09:00
Joost VandeVondele
bb6188430d
Add split_count argument to shuffle_binpack.py
...
this optional argument allows for splitting the input binpack in multiple output binpacks while shuffling.
2020-12-25 00:40:40 +09:00
Tomasz Sobczyk
4f6fdca31f
Reduce the amount of sfens buffered for the validation step.
...
Used to be 10M, now we bound it by a multiple of validation_count, and at most 1M. This reduces the RAM usage greatly.
2020-12-25 00:17:35 +09:00
Tomasz Sobczyk
7636bcccd1
Correctly account for factors when computing the average absolute weight of the feature transformer.
2020-12-25 00:08:51 +09:00
Tomasz Sobczyk
2061be4730
smart_fen_skipping at gensfen_nonpv level
2020-12-24 21:37:30 +09:00
Tomasz Sobczyk
868b4e9421
add gensfen_nonpv docs
2020-12-24 21:37:30 +09:00
Tomasz Sobczyk
96b377a90a
Add gensfen_nonpv
2020-12-24 21:37:30 +09:00
Tomasz Sobczyk
3f73c40412
More deterministic move accuracy validation.
2020-12-24 10:16:59 +09:00
Joost VandeVondele
b50dcd7dde
allow for repeated searches in rescoring
...
allows for repeating a depth N search K times.
Repeated searches improve the quality of eval, but don't bring in higher depth info.
Might allow for removing some of the noise in low depth scoring.
2020-12-24 09:46:10 +09:00
Tomasz Sobczyk
8ca82646a9
Use plain nnue eval for validation loss calculation instead of first performing qsearch
2020-12-22 10:35:19 +09:00
Tomasz Sobczyk
6853b4aac2
Simple filtering for validation data.
2020-12-22 09:40:25 +09:00
Tomasz Sobczyk
50df3a7389
fix annoying warning
2020-12-22 09:24:26 +09:00
Tomasz Sobczyk
994eb5e183
rescore_fen -> rescore. Make it work on .bin and .binpack inputs.
2020-12-21 10:48:20 +09:00
Tomasz Sobczyk
ffae19b5a1
Add docs for rescore_fen
2020-12-21 10:48:20 +09:00
Tomasz Sobczyk
a9cfaa4d98
Add a tool for rescoring fens from an epd file with fixed depth search
2020-12-21 10:48:20 +09:00
Tomasz Sobczyk
f56613ebf6
Add 'validation_count' option for 'learn' that specifies how many positions to use for validation
2020-12-20 09:47:30 +09:00
Tomasz Sobczyk
a7378f3249
Make next_fen in opening_book a critical section
2020-12-14 09:03:04 +09:00