nodchip
a41cbb9ca9
Renamed use_draw_in_training_data_generation option to write_out_draw_game_in_training_data_generation.
2020-08-10 15:49:24 +09:00
nodchip
3bd3ef0aea
Implemented the code to detect draw by insufficient mating material.
2020-08-10 15:47:11 +09:00
nodchip
4a87d7b787
Added the use_game_draw_adjudication option.
2020-08-10 15:44:58 +09:00
nodchip
12c6c2f550
Chagned to use the search value instead of the value of the PV leaf to avoid crash by assertion.
2020-08-10 13:07:22 +09:00
nodchip
bac96aa04a
Changed to use TB in the training data generator. #67
2020-08-10 12:17:26 +09:00
nodchip
e65c515d6b
Changed to specify the current tick as a random seed. #68
2020-08-10 12:09:21 +09:00
nodchip
643be3c6f9
Changed not to use std::random_device(). Because it always returns the same integers on MingW. #68
2020-08-10 10:45:03 +09:00
tttak
31d4f46f5e
update convert_bin
...
learn convert_bin in.txt output_file_name out.bin check_illegal_move 1
convert in.txt ... done 16 parsed 4 is filtered (illegal fen:1, illegal move:2, illegal ply:1)
2020-08-10 09:53:52 +09:00
nodchip
53d15e5ec2
Merge pull request #79 from nodchip/nnue-player-merge
...
Merge Stockfish master to nodchip's repository
2020-08-10 09:51:44 +09:00
nodchip
4260ed0c7f
Merge branch 'master' of github.com:official-stockfish/Stockfish into nnue-player-merge
2020-08-10 08:52:55 +09:00
nodchip
4f97d3446d
Cleaned up source code.
2020-08-10 08:52:34 +09:00
Joost VandeVondele
27b593a944
Fix a data race for NNUE
...
the stateInfo at the rootPos is no longer read-only, as the NNUE accumulator is part of it.
Threads can thus not share this object and need their own copy.
tested for no regression
https://tests.stockfishchess.org/tests/view/5f3022239081672066536bce
LLR: 2.96 (-2.94,2.94) {-1.50,0.50}
Total: 52800 W: 6843 L: 6802 D: 39155
Ptnml(0-2): 336, 4646, 16399, 4679, 340
closes https://github.com/official-stockfish/Stockfish/pull/2957
fixes https://github.com/official-stockfish/Stockfish/issues/2933
No functional change
2020-08-09 23:51:07 +02:00
Dariusz Orzechowski
a6e89293df
Avoid special casing for MinGW
...
after some testing, no version of MinGW/gcc has been found where this code is still necessary.
Probably older code (pre-c++17?)
closes https://github.com/official-stockfish/Stockfish/pull/2891
No functional change
2020-08-09 23:49:14 +02:00
Vizvezdenec
2bfde55429
Adjust NNUE usage based on number of pawns in position
...
The idea of this patch is that positions are usually more complex and hard to evaluate even if there are more pawns.
This patch adjusts NNUE threshold usage depending on number of pawns in position, if pawn count is <3 we use the
classical evaluation more often, for pawn count = 3 patch the is non-functional,
with pawn count > 3 NNUE evaluation is used more often.
passed STC
https://tests.stockfishchess.org/tests/view/5f2f02d09081672066536b1f
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 36520 W: 5011 L: 4823 D: 26686
Ptnml(0-2): 299, 3482, 10548, 3594, 337
passed LTC
https://tests.stockfishchess.org/tests/view/5f2f4c329081672066536b5c
LLR: 2.98 (-2.94,2.94) {0.25,1.75}
Total: 39272 W: 2630 L: 2433 D: 34209
Ptnml(0-2): 53, 2066, 15218, 2229, 70
closes https://github.com/official-stockfish/Stockfish/pull/2960
bench 4084753
2020-08-09 21:26:17 +02:00
Joost VandeVondele
cd1bb27dd4
Fix aligned_alloc on MinGW
...
introduced with d7a26899a9
closes https://github.com/official-stockfish/Stockfish/pull/2959
No functional change.
2020-08-09 21:25:22 +02:00
Joost VandeVondele
320fa1b2f0
Improve error message on missing net.
...
small rewording, but also print the download url for the default net.
closes https://github.com/official-stockfish/Stockfish/pull/2954
No functional change
2020-08-09 17:09:18 +02:00
Daniel Dugovic
d7a26899a9
Use fallback implementation for C++ aligned_alloc
...
fixes https://github.com/official-stockfish/Stockfish/issues/2921
closes https://github.com/official-stockfish/Stockfish/pull/2927
No functional change
2020-08-09 17:07:45 +02:00
nodchip
7f1f08d094
Merge branch 'master' of github.com:official-stockfish/Stockfish into nnue-player-merge
...
# Conflicts:
# README.md
2020-08-09 09:19:47 +09:00
Unai Corzo
add890a10b
LMR search tweak
...
All credit to Vizvezdenec, the original author of the idea.
STC https://tests.stockfishchess.org/tests/view/5f2d606a61e3b6af64881f88
LLR: 2.95 (-2.94,2.94) {-0.50,1.50}
Total: 8440 W: 1191 L: 1048 D: 6201
Ptnml(0-2): 59, 754, 2467, 865, 75
LTC https://tests.stockfishchess.org/tests/view/5f2d84ad61e3b6af64881fbd
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 21896 W: 1557 L: 1406 D: 18933
Ptnml(0-2): 33, 1185, 8378, 1302, 50
closes https://github.com/official-stockfish/Stockfish/pull/2951
bench: 4084753
2020-08-08 22:42:00 +02:00
Unai Corzo
1949eb8604
Singular extension search tweak
...
Tweak depth.
STC https://tests.stockfishchess.org/tests/view/5f2d22ec61e3b6af64881f40
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 17984 W: 2603 L: 2441 D: 12940
Ptnml(0-2): 133, 1751, 5094, 1849, 165
LTC https://tests.stockfishchess.org/tests/view/5f2d5a6a61e3b6af64881f7f
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 85808 W: 5956 L: 5621 D: 74231
Ptnml(0-2): 149, 4748, 32785, 5063, 159
closes https://github.com/official-stockfish/Stockfish/pull/2950
fixes two README.md typos:
fixes https://github.com/official-stockfish/Stockfish/issues/2932
bench: 4022669
2020-08-08 22:39:26 +02:00
Guy Vreuls
6d6267c378
Parallelize Link Time Optimization for GCC, CLANG and MINGW
...
This patch tries to run multiple LTO threads in parallel, speeding up
the build process of optimized builds if the -j make parameter is used.
This mitigates the longer linking times of optimized builds since the
integration of the NNUE code. Roughly 2x build speedup.
I've tried a similar patch some two years ago but it ran into trouble
with old compiler versions then. Since we're on the C++17 standard now
these old compilers should be obsolete.
closes https://github.com/official-stockfish/Stockfish/pull/2943
No functional change.
2020-08-08 22:35:18 +02:00
Vizvezdenec
e663bc5330
Do more aggressive futility pruning for captures
...
This patch lines up with other patches which use better eval to produce more aggressive cutoffs based on static evaluation of position, it allows more aggressive futility pruning for captures - so now we will be producing them with bigger evaluation of position, so more often.
passed STC
https://tests.stockfishchess.org/tests/view/5f2da79e61e3b6af64881fd2
LLR: 3.87 (-2.94,2.94) {-0.50,1.50}
Total: 27256 W: 3809 L: 3593 D: 19854
Ptnml(0-2): 221, 2578, 7830, 2762, 237
passed LTC
https://tests.stockfishchess.org/tests/view/5f2df92061e3b6af64882012
LLR: 4.97 (-2.94,2.94) {0.25,1.75}
Total: 43624 W: 3095 L: 2820 D: 37709
Ptnml(0-2): 66, 2410, 16608, 2639, 89
closes https://github.com/official-stockfish/Stockfish/pull/2946
Bench: 4272280
2020-08-08 22:08:55 +02:00
Moez Jellouli
3368d03285
update Null Move Pruning parameters
...
STC: https://tests.stockfishchess.org/tests/view/5f2dc38561e3b6af64881fec
LLR: 2.99 (-2.94,2.94) {-0.50,1.50}
Total: 6120 W: 903 L: 758 D: 4459
Ptnml(0-2): 44, 535, 1775, 644, 62
LTC: https://tests.stockfishchess.org/tests/view/5f2dd55f61e3b6af64882003
LLR: 2.95 (-2.94,2.94) {0.25,1.75}
Total: 7424 W: 577 L: 463 D: 6384
Ptnml(0-2): 16, 375, 2824, 473, 24
closes https://github.com/official-stockfish/Stockfish/pull/2942
bench 4107833
2020-08-08 22:07:51 +02:00
mckx00
450b60a303
Remove unnecessay legality check
...
Possible after the recent reording pos.legal(move) check
https://github.com/official-stockfish/Stockfish/pull/2941
No functional change.
2020-08-08 21:42:59 +02:00
nodchip
fcd70a3c81
Updated README.md.
...
Bench: 4067325
2020-08-08 21:00:19 +09:00
nodchip
3b5de9f18b
Merge branch 'master' of github.com:official-stockfish/Stockfish into nnue-player-merge
2020-08-08 19:47:32 +09:00
nodchip
22b85810fe
Re-added the code to skip loading a net file.
2020-08-08 19:04:08 +09:00
nodchip
4f94f29f39
Revert "Fixed a bug that the training data generation crashes if eval_limit is high."
...
This reverts commit b0d28ac3ab .
2020-08-08 18:38:02 +09:00
nodchip
9a0b20d3fc
Changed to show if NNUE is used in the training data generator.
2020-08-08 18:24:09 +09:00
nodchip
b0d28ac3ab
Fixed a bug that the training data generation crashes if eval_limit is high.
2020-08-08 18:23:11 +09:00
nodchip
70d88364fe
Fixed a bug that the training data generation crashes.
2020-08-08 18:22:29 +09:00
nodchip
ed4d007e3c
Fixed a bug that the training data generator crahses on memory allocation.
2020-08-08 18:21:38 +09:00
nodchip
2395833c07
Re-added commands for training data generator and trainer.
2020-08-08 16:52:18 +09:00
nodchip
fa649ba1e2
Removed a compile warning.
2020-08-08 16:17:55 +09:00
nodchip
2c9075e919
Fixed Makefile to fix build.
2020-08-08 16:05:05 +09:00
nodchip
55a6b2bdc4
Merge branch 'master' of github.com:official-stockfish/Stockfish into nnue-player-merge
...
# Conflicts:
# README.md
# Readme.md
# src/Makefile
# src/evaluate.cpp
# src/evaluate.h
# src/misc.cpp
# src/nnue/architectures/halfkp_256x2-32-32.h
# src/nnue/evaluate_nnue.cpp
# src/nnue/evaluate_nnue.h
# src/nnue/features/feature_set.h
# src/nnue/features/features_common.h
# src/nnue/features/half_kp.cpp
# src/nnue/features/half_kp.h
# src/nnue/features/index_list.h
# src/nnue/layers/affine_transform.h
# src/nnue/layers/clipped_relu.h
# src/nnue/layers/input_slice.h
# src/nnue/nnue_accumulator.h
# src/nnue/nnue_architecture.h
# src/nnue/nnue_common.h
# src/nnue/nnue_feature_transformer.h
# src/position.cpp
# src/position.h
# src/types.h
# src/ucioption.cpp
# stockfish.md
2020-08-08 15:55:42 +09:00
U-DESKTOP-3900\Mark
23ecf3d5c6
simplified and increased threshold to switch between NNUE and classical
...
STC https://tests.stockfishchess.org/tests/view/5f2deb1661e3b6af6488200f
LLR: 2.96 (-2.94,2.94) {-1.50,0.50}
Total: 10376 W: 1481 L: 1359 D: 7536
Ptnml(0-2): 91, 953, 2981, 1069, 94
LTC: https://tests.stockfishchess.org/html/live_elo.html?5f2e0a0461e3b6af64882019
LLR: 2.99 (-2.94,2.94) {-1.50,0.50}
Total: 5040 W: 375 L: 315 D: 4350
Ptnml(0-2): 7, 263, 1926, 311, 13
closes https://github.com/official-stockfish/Stockfish/pull/2934
Bench: 4067325
2020-08-08 08:40:51 +02:00
Vizvezdenec
910f779eb1
Do more futility pruning for parent nodes.
...
This patch increases LMRdepth threshold for futility pruning at parent nodes so it can apply more often.
With radical change to evaluation approach it seems that search is really far from optimal state, especially it parts that use static evaluation of position.
passed STC
https://tests.stockfishchess.org/tests/view/5f2da75661e3b6af64881fd0
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 8744 W: 1305 L: 1156 D: 6283
Ptnml(0-2): 75, 789, 2500, 928, 80
passed LTC
https://tests.stockfishchess.org/tests/view/5f2dcb2a61e3b6af64881ff3
LLR: 2.98 (-2.94,2.94) {0.25,1.75}
Total: 17728 W: 1256 L: 1117 D: 15355
Ptnml(0-2): 22, 961, 6774, 1070, 37
Bench: 4067325
2020-08-08 08:35:47 +02:00
SFisGOD
f4c27cda1a
Reintroduce late irreversible move extension
...
Reintroduce vondele's late irreversible move extension for fortress keeping.
This was removed when we only had classical eval.
Now that we have the NNUE net, it seems that this is useful again.
STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 5352 W: 787 L: 653 D: 3912
Ptnml(0-2): 34, 451, 1579, 571, 41
https://tests.stockfishchess.org/tests/view/5f2dc8ad61e3b6af64881ff0
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 14416 W: 1013 L: 891 D: 12512
Ptnml(0-2): 15, 722, 5623, 822, 26
https://tests.stockfishchess.org/tests/view/5f2e0e3661e3b6af6488201e
closes https://github.com/official-stockfish/Stockfish/pull/2936
Bench: 4154696
2020-08-08 08:33:24 +02:00
Lolligerhans
5ccff25df2
Expand outposts to minors shielded by pawns
...
Allow any pawn in front of a minor piece to replace the pawn protection
requirement for outposts.
+-------+ +-------+
| . . o | | o . . | o Their pawns
| . o x | | o . . | x Our pawns
| o N . | | x o B | N,B New (reachable) outpost
| . . . | | . _ . | _ Reachable square behind a pawn
+-------+ +-------+
N outpost B reaches
outpost
We want outposts to be secured by pawns against major pieces. If
a minor is shielded by any pawn from above, it is rarely at the same
time protected by our pawn attacks from below. However, the pawn shield
in itself offers some degree of protection.
A pawn shield will now suffice to replace the pawn protection for the
outpost (and reachable outpost) bonus.
This effect stacks with the existing "minor behind pawn" bonus.
STC
https://tests.stockfishchess.org/tests/view/5f2bcd14b3ebe5cbfee85b2c
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 27248 W: 5353 L: 5119 D: 16776
Ptnml(0-2): 462, 3174, 6185, 3274, 529
LTC
https://tests.stockfishchess.org/tests/view/5f2bfef5b3ebe5cbfee85b5a
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 99432 W: 12580 L: 12130 D: 74722
Ptnml(0-2): 696, 8903, 30049, 9391, 677
Closes #2935
Bench: 4143673
2020-08-08 08:31:06 +02:00
Unai Corzo
dc5af66ead
Tweak futility pruning depth.
...
STC https://tests.stockfishchess.org/tests/view/5f2d237161e3b6af64881f43
LLR: 2.96 (-2.94,2.94) {-0.50,1.50}
Total: 12712 W: 1823 L: 1664 D: 9225
Ptnml(0-2): 122, 1166, 3627, 1313, 128
LTC https://tests.stockfishchess.org/tests/view/5f2d473061e3b6af64881f6f
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 12104 W: 912 L: 788 D: 10404
Ptnml(0-2): 13, 665, 4582, 769, 23
closes https://github.com/official-stockfish/Stockfish/pull/2930
bench: 4271421
2020-08-08 08:25:06 +02:00
nodchip
1abae04ceb
Fixed Makefile.
2020-08-07 23:00:11 +09:00
nodchip
bf7d02578e
Fixed build errors.
2020-08-07 22:47:45 +09:00
nodchip
1c23465383
Moved the nnue folder.
2020-08-07 22:34:53 +09:00
Sergio Vieri
857e045ced
Update default net to nn-9931db908a9b.nnue
...
Net created at 20200806-1802
passed STC:
https://tests.stockfishchess.org/tests/view/5f2d00b461e3b6af64881f21
LLR: 2.94 (-2.94,2.94) {-0.50,1.50}
Total: 6672 W: 1052 L: 898 D: 4722
Ptnml(0-2): 63, 600, 1868, 730, 75
passed LTC:
https://tests.stockfishchess.org/tests/view/5f2d052a61e3b6af64881f29
LLR: 2.96 (-2.94,2.94) {0.25,1.75}
Total: 7576 W: 573 L: 463 D: 6540
Ptnml(0-2): 8, 392, 2889, 480, 19
closes https://github.com/official-stockfish/Stockfish/pull/2923
Bench: 4390086
2020-08-07 13:07:28 +02:00
Stefan Geschwentner
615d98da24
Do move legality check before pruning.
...
This alllows to simplify the code because the move counter haven't to be
decremented later if a move isn't legal. As a side effect now illegal
pruned moves doesn't included anymore in move counter. So slightly less
pruning and reductions are done.
STC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 111016 W: 21106 L: 21077 D: 68833
Ptnml(0-2): 1830, 13083, 25736, 12946, 1913
https://tests.stockfishchess.org/tests/view/5f28816fa5abc164f05e4c26
LTC:
LLR: 2.94 (-2.94,2.94) {-1.50,0.50}
Total: 39264 W: 4909 L: 4843 D: 29512
Ptnml(0-2): 263, 3601, 11854, 3635, 279
https://tests.stockfishchess.org/tests/view/5f297902a5abc164f05e4c8e
closes https://github.com/official-stockfish/Stockfish/pull/2906
Bench: 4390086
2020-08-07 09:05:20 +02:00
UnaiCorzo
7f336dd59b
Remove QueenInfiltration
...
STC https://tests.stockfishchess.org/tests/view/5f2955b1a5abc164f05e4c85
LLR: 2.96 (-2.94,2.94) {-1.50,0.50}
Total: 29216 W: 5560 L: 5416 D: 18240
Ptnml(0-2): 466, 3329, 6902, 3417, 494
LTC https://tests.stockfishchess.org/tests/view/5f299154a5abc164f05e4ca1
LLR: 2.92 (-2.94,2.94) {-1.50,0.50}
Total: 54144 W: 6635 L: 6594 D: 40915
Ptnml(0-2): 372, 4859, 16536, 4966, 339
closes https://github.com/official-stockfish/Stockfish/pull/2910
Bench: 4609008
2020-08-07 09:00:45 +02:00
FauziAkram
af935365e3
Tuned pawn values
...
Passed STC:
https://tests.stockfishchess.org/tests/view/5f2aa49fa5abc164f05e4d1b
LLR: 2.95 (-2.94,2.94) {-0.50,1.50}
Total: 40888 W: 7977 L: 7726 D: 25185
Ptnml(0-2): 665, 4806, 9333, 4893, 747
Passed LTC:
https://tests.stockfishchess.org/tests/view/5f2b1059b3ebe5cbfee85ae7
LLR: 2.98 (-2.94,2.94) {0.25,1.75}
Total: 51264 W: 6445 L: 6134 D: 38685
Ptnml(0-2): 328, 4564, 15580, 4789, 371
closes https://github.com/official-stockfish/Stockfish/pull/2920
bench: 4314943
2020-08-07 08:57:37 +02:00
Stefan Geschwentner
8b8412ef87
Add tempo also to NNUE eval.
...
STC:
LLR: 2.93 (-2.94,2.94) {-0.50,1.50}
Total: 10608 W: 1507 L: 1358 D: 7743
Ptnml(0-2): 94, 945, 3074, 1100, 91
https://tests.stockfishchess.org/tests/view/5f2c5921b3ebe5cbfee85b8b
LTC:
LLR: 2.94 (-2.94,2.94) {0.25,1.75}
Total: 7536 W: 556 L: 448 D: 6532
Ptnml(0-2): 9, 383, 2881, 481, 14
https://tests.stockfishchess.org/tests/view/5f2c6f4461e3b6af64881e95
closes https://github.com/official-stockfish/Stockfish/pull/2919
Bench: 4746616
2020-08-07 08:54:38 +02:00
MJZ1977
3dca13a958
NNUE evaluation threshold
...
The idea is to use NNUE only on quite balanced material positions. This bring a big speedup on research since NNUE eval is slower than classical eval for most of the hardwares and specially on unbalanced positions with LazyEval.
STC: https://tests.stockfishchess.org/tests/view/5f2c2680b3ebe5cbfee85b61
LLR: 2.95 (-2.94,2.94) {-0.50,1.50}
Total: 3168 W: 560 L: 400 D: 2208
Ptnml(0-2): 21, 294, 819, 404, 46
LTC: https://tests.stockfishchess.org/tests/view/5f2c2ca6b3ebe5cbfee85b69
LLR: 2.98 (-2.94,2.94) {0.25,1.75}
Total: 3200 W: 287 L: 183 D: 2730
Ptnml(0-2): 4, 149, 1191, 251, 5
closes https://github.com/official-stockfish/Stockfish/pull/2916
Bench 4746616
2020-08-06 21:46:31 +02:00