A collection of tools for local and distributed tuning of chess engines.
Project description
A collection of tools for local and distributed tuning of chess engines.
Free software: Apache Software License 2.0
Documentation: https://chess-tuning-tools.readthedocs.io.
Features
Optimization of chess engines using state-of-the-art Bayesian optimization.
Support for automatic visualization of the optimization landscape.
Scoring matches using the pentanomial model for paired openings.
Quick Start
In order to be able to start the tuning, first create a python environment and install chess-tuning-tools by typing:
pip install chess-tuning-tools
Furthermore, you need to have cutechess-cli in the path. The tuner will use it to run matches.
To execute the local tuner, simply run:
tune local -c tuning_config.json
Take a look at the usage instructions and the example configurations to learn how to set up the tuning_config.json file.
Distributed tuning
The distributed tuning framework is currently not actively supported. To be able to run the tuning client, you need the following directory structure:
folder/ |---- networks/ | |---- networkid |---- openings/ | |---- ... | |---- openings.pgn | |---- ... |---- dbconfig.json |---- engine1[.exe] |---- engine2[.exe]
Finally, the tuning client can be started as follows:
cd path/to/folder tune run-client dbconfig.json
The client can be terminated gracefully by inputting ctrl-c once or terminated immediately by sending it twice.
You will also need to run a PostgreSQL database, which the server will use to post jobs for the clients to fetch and the clients to report their results to.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for chess-tuning-tools-0.5.0b4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 507072a13a4dbf166706fde1d713a20168ad9f20f0ced043d36726a49da99d67 |
|
MD5 | 71b61173f0d5513091db5223769f26d0 |
|
BLAKE2b-256 | b3dc403e841dee900803871b395a13c5efedf36d08748b5518530ec5f5453ef6 |
Hashes for chess_tuning_tools-0.5.0b4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccc02c60b0c0c111cfc616a81ea8b904e8aae497928c011f6ba7f81f73f05cc1 |
|
MD5 | e352dbf76915df493c57fa0e8d0995e8 |
|
BLAKE2b-256 | 39086fd09a977f7edf1f918c4ea2438ac401227a670cf6c4fd25206e0af207f8 |