From be795d3f891213047671abc7b503a99998c0e119 Mon Sep 17 00:00:00 2001 From: Johannes Czech Date: Tue, 8 Jun 2021 15:46:23 +0200 Subject: [PATCH] Revert "RL Logging: Found tablebases and Configs (#130)" This reverts commit 51c50af2f608b5a04f9eab6f79478bf27937e4c3. --- engine/src/rl/binaryio.py | 8 -------- engine/src/rl/rl_loop.py | 18 +++++------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/engine/src/rl/binaryio.py b/engine/src/rl/binaryio.py index d1bc7b12..b56e7c02 100644 --- a/engine/src/rl/binaryio.py +++ b/engine/src/rl/binaryio.py @@ -171,14 +171,6 @@ def _set_uci_param(self, name: str, value): bytes(str(value), encoding="utf-8"))) self.proc.stdin.flush() - # Log how many tablebases could be found - if name == f'SyzygyPath' and value != '' and value != '': - while True: - line = self.proc.stdout.readline().decode().rstrip('\n') - if line.startswith('info string Found') and line.endswith('tablebases'): - logging.info(line[12:]) - break - def stop_process(self): """ Kills the process that is attached to the binary. diff --git a/engine/src/rl/rl_loop.py b/engine/src/rl/rl_loop.py index b6d9926b..c6d4c40a 100644 --- a/engine/src/rl/rl_loop.py +++ b/engine/src/rl/rl_loop.py @@ -12,7 +12,6 @@ import logging import argparse from rtpt import RTPT -import dataclasses from multiprocessing import Process, Queue assert os.getcwd().endswith(f'engine/src/rl'), f'Please change working directory' @@ -214,18 +213,11 @@ def main(): rl_loop.rtpt._get_title(), rl_loop.nn_update_index) rl_loop.initialize() - logging.info(f'--------------- CONFIG SETTINGS ---------------') - for key, value in sorted(vars(args).items()): - logging.info(f'CMD line args: {key} = {value}') - for key, value in sorted(dataclasses.asdict(rl_loop.tc).items()): - logging.info(f'Train Config: {key} = {value}') - for key, value in sorted(dataclasses.asdict(rl_config).items()): - logging.info(f'RL Options: {key} = {value}') - for key, value in rl_loop.binary_io.get_uci_options().items(): - logging.info(f'UCI Options: {key} = {value}') - for key, value in sorted(dataclasses.asdict(UCIConfigArena()).items()): - logging.info(f'UCI Options Arena: {key} = {value}') - logging.info(f'-----------------------------------------------') + logging.info(f'Command line parameters: {str(args)}') + logging.info(f'RL Options: {rl_config}') + logging.info(f'UCI Options: {rl_loop.binary_io.get_uci_options()}') + logging.info(f'UCI changes for arena: {UCIConfigArena()}') + logging.info(rl_loop.tc) while True: if args.trainer: