Skip to content

Commit

Permalink
Revert "RL Logging: Found tablebases and Configs (#130)"
Browse files Browse the repository at this point in the history
This reverts commit 51c50af.
  • Loading branch information
QueensGambit authored Jun 8, 2021
1 parent 51c50af commit be795d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
8 changes: 0 additions & 8 deletions engine/src/rl/binaryio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 != '<empty>':
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.
Expand Down
18 changes: 5 additions & 13 deletions engine/src/rl/rl_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit be795d3

Please # to comment.