Calculates an error by evaluating all loaded positions with the currently set evaluation parameters. Multithreading is supported by threads_count
.
Gets a Rust representation of the piece values
array.
Gets a generated Rust source file header with timestamp and best_error
.
Gets a Rust representation of the parameter with the specified name
and value
.
Gets a Rust representation of the piece-square tables with the specified values
.
Loads positions from the
epd_filename
and parses them into a list of
TunerPosition. Returns
Err with a proper error message if the
file couldn’t be parsed.
Transforms the current evaluation values into a list of
TunerParameter. Use
lock_material
if the parameters related to piece values should
be skipped, and
random_values
if the parameters should have random values (useful when initializing tuner).
Runs tuner of evaluation parameters. The input file is specified by epd_filename
with a list of positions and their expected results, and the output_directory
directory is used to store generated Rust sources with the optimized values. Use lock_material
to disable tuner for piece values, and random_values
to initialize
evaluation parameters with random values. Multithreading is supported by threads_count
.
Transforms values
into the evaluation parameters, which can be used during real evaluation. Use lock_material
if the parameters
related to piece values should be skipped.
Saves index
-th evaluation parameter stored in values
in the destination
.
Saves
i8 array starting at the
index
of
values
in the
array
.
Saves
i16 array starting at the
index
of
values
in the
array
.
Generates parameters.rs
file with current evaluation parameters, and saves it into the output_directory
.
Generates piece-square tables (Rust source file with current evaluation parameters), and saves it into the output_directory
.