mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Renaming and small changes.
This commit is contained in:
@@ -1,34 +1,36 @@
|
||||
# Gensfen
|
||||
# generate_training_data
|
||||
|
||||
`gensfen` command allows generation of training data from self-play in a manner that suits training better than traditional games. It introduces random moves to diversify openings, and fixed depth evaluation.
|
||||
`generate_training_data` command allows generation of training data from self-play in a manner that suits training better than traditional games. It introduces random moves to diversify openings, and fixed depth evaluation.
|
||||
|
||||
As all commands in stockfish `gensfen` can be invoked either from command line (as `stockfish.exe gensfen ...`, but this is not recommended because it's not possible to specify UCI options before `gensfen` executes) or in the interactive prompt.
|
||||
As all commands in stockfish `generate_training_data` can be invoked either from command line (as `stockfish.exe generate_training_data ...`, but this is not recommended because it's not possible to specify UCI options before `generate_training_data` executes) or in the interactive prompt.
|
||||
|
||||
It is recommended to set the `PruneAtShallowDepth` UCI option to `false` as it will increase the quality of fixed depth searches.
|
||||
|
||||
It is recommended to keep the `EnableTranspositionTable` UCI option at the default `true` value as it will make the generation process faster without noticably harming the uniformity of the data.
|
||||
|
||||
`gensfen` takes named parameters in the form of `gensfen param_1_name param_1_value param_2_name param_2_value ...`.
|
||||
`generate_training_data` takes named parameters in the form of `generate_training_data param_1_name param_1_value param_2_name param_2_value ...`.
|
||||
|
||||
Currently the following options are available:
|
||||
|
||||
`set_recommended_uci_options` - this is a modifier not a parameter, no value follows it. If specified then some UCI options are set to recommended values.
|
||||
|
||||
`depth` - minimum depth of evaluation of each position. Default: 3.
|
||||
`depth` - sets minimum and maximum depth of evaluation of each position. Default: 3.
|
||||
|
||||
`depth2` - maximum depth of evaluation of each position. If not specified then the same as `depth`.
|
||||
`mindepth` - minimum depth of evaluation of each position. If not specified then the same as `depth`.
|
||||
|
||||
`maxdepth` - minimum depth of evaluation of each position. If not specified then the same as `depth`.
|
||||
|
||||
`nodes` - the number of nodes to use for evaluation of each position. This number is multiplied by the number of PVs of the current search. This does NOT override the `depth` and `depth2` options. If specified then whichever of depth or nodes limit is reached first applies.
|
||||
|
||||
`loop` - the number of training data entries to generate. 1 entry == 1 position. Default: 8000000000 (8B).
|
||||
`count` - the number of training data entries to generate. 1 entry == 1 position. Default: 8000000000 (8B).
|
||||
|
||||
`output_file_name` - the name of the file to output to. If the extension is not present or doesn't match the selected training data format the right extension will be appened. Default: generated_kifu
|
||||
|
||||
`eval_limit` - evaluations with higher absolute value than this will not be written and will terminate a self-play game. Should not exceed 10000 which is VALUE_KNOWN_WIN, but is only hardcapped at mate in 2 (\~30000). Default: 3000
|
||||
|
||||
`random_move_minply` - the minimal ply at which a random move may be executed instead of a move chosen by search. Default: 1.
|
||||
`random_move_min_ply` - the minimal ply at which a random move may be executed instead of a move chosen by search. Default: 1.
|
||||
|
||||
`random_move_maxply` - the maximal ply at which a random move may be executed instead of a move chosen by search. Default: 24.
|
||||
`random_move_max_ply` - the maximal ply at which a random move may be executed instead of a move chosen by search. Default: 24.
|
||||
|
||||
`random_move_count` - maximum number of random moves in a single self-play game. Default: 5.
|
||||
|
||||
@@ -40,9 +42,9 @@ Currently the following options are available:
|
||||
|
||||
`random_multi_pv_depth` - the depth to use for multiPV search for random move. Default: `depth2`.
|
||||
|
||||
`write_minply` - minimum ply for which the training data entry will be emitted. Default: 16.
|
||||
`write_min_ply` - minimum ply for which the training data entry will be emitted. Default: 16.
|
||||
|
||||
`write_maxply` - maximum ply for which the training data entry will be emitted. Default: 400.
|
||||
`write_max_ply` - maximum ply for which the training data entry will be emitted. Default: 400.
|
||||
|
||||
`book` - a path to an opening book to use for the starting positions. Currently only .epd format is supported. If not specified then the starting position is always the standard chess starting position.
|
||||
|
||||
@@ -50,17 +52,13 @@ Currently the following options are available:
|
||||
|
||||
`random_file_name` - if specified then the output filename will be chosen randomly. Overrides `output_file_name`.
|
||||
|
||||
`write_out_draw_game_in_training_data_generation` - either 0 or 1. If 1 then training data from drawn games will be emitted too. Default: 1.
|
||||
`keep_draws` - either 0 or 1. If 1 then training data from drawn games will be emitted too. Default: 1.
|
||||
|
||||
`use_draw_in_training_data_generation` - deprecated, alias for `write_out_draw_game_in_training_data_generation`
|
||||
`adjudicate_draws_by_score` - either 0 or 1. If 1 then drawn games will be adjudicated when the score remains 0 for at least 8 plies after ply 80. Default: 1.
|
||||
|
||||
`detect_draw_by_consecutive_low_score` - either 0 or 1. If 1 then drawn games will be adjudicated when the score remains 0 for at least 8 plies after ply 80. Default: 1.
|
||||
`adjudicate_draws_by_insufficient_mating_material` - either 0 or 1. If 1 then position with insufficient material will be adjudicated as draws. Default: 1.
|
||||
|
||||
`use_game_draw_adjudication` - deprecated, alias for `detect_draw_by_consecutive_low_score`
|
||||
|
||||
`detect_draw_by_insufficient_mating_material` - either 0 or 1. If 1 then position with insufficient material will be adjudicated as draws. Default: 1.
|
||||
|
||||
`sfen_format` - format of the training data to use. Either `bin` or `binpack`. Default: `binpack`.
|
||||
`data_format` - format of the training data to use. Either `bin` or `binpack`. Default: `binpack`.
|
||||
|
||||
`ensure_quiet` - this is a flag option. When specified the positions will be from the qsearch leaf.
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# Gensfen NonPV
|
||||
# generate_training_data_nonpv
|
||||
|
||||
`gensfen_nonpv` command allows generation of training data from self-play in a manner that suits training better than traditional games. It plays fixed nodes self play games for exploration and records [some of] the evaluated positions. Then rescores them with fixed depth search.
|
||||
`generate_training_data_nonpv` command allows generation of training data from self-play in a manner that suits training better than traditional games. It plays fixed nodes self play games for exploration and records [some of] the evaluated positions. Then rescores them with fixed depth search.
|
||||
|
||||
As all commands in stockfish `gensfen_nonpv` can be invoked either from command line (as `stockfish.exe gensfen_nonpv ...`, but this is not recommended because it's not possible to specify UCI options before `gensfen_nonpv` executes) or in the interactive prompt.
|
||||
As all commands in stockfish `generate_training_data_nonpv` can be invoked either from command line (as `stockfish.exe generate_training_data_nonpv ...`, but this is not recommended because it's not possible to specify UCI options before `generate_training_data_nonpv` executes) or in the interactive prompt.
|
||||
|
||||
It is recommended to set the `PruneAtShallowDepth` UCI option to `false` as it will increase the quality of fixed depth searches.
|
||||
|
||||
It is recommended to keep the `EnableTranspositionTable` UCI option at the default `true` value as it will make the generation process faster without noticably harming the uniformity of the data.
|
||||
|
||||
`gensfen_nonpv` takes named parameters in the form of `gensfen_nonpv param_1_name param_1_value param_2_name param_2_value ...`.
|
||||
`generate_training_data_nonpv` takes named parameters in the form of `generate_training_data_nonpv param_1_name param_1_value param_2_name param_2_value ...`.
|
||||
|
||||
Currently the following options are available:
|
||||
|
||||
@@ -36,6 +36,6 @@ Currently the following options are available:
|
||||
|
||||
`book` - a path to an opening book to use for the starting positions. Currently only .epd format is supported. If not specified then the starting position is always the standard chess starting position.
|
||||
|
||||
`sfen_format` - format of the training data to use. Either `bin` or `binpack`. Default: `binpack`.
|
||||
`data_format` - format of the training data to use. Either `bin` or `binpack`. Default: `binpack`.
|
||||
|
||||
`seed` - seed for the PRNG. Can be either a number or a string. If it's a string then its hash will be used. If not specified then the current time will be used.
|
||||
Reference in New Issue
Block a user