Closed Rediness closed 2 months ago
My suggestions:
util/tee_printing.py
file, that has a TeePrinter
class, and a free function init_tee_printing(filename: str)
. Calling that function will make it so that print()
statements print both to stdout and to the passed-in filename. Then replace the init_logging()
call in the run()
method with a call to init_tee_printing()
.py/alphazero/compute_ratings.py
that only need the organizer role to construct the organizer, not the manager.All this has been completed. The alphazero loop logic is now well-separated into different servers/modules.
Mainly, the AlphaZeroManager, which has many responsibiliies (logging, training, cleaning, initializing state, etc) Split those responsibilities accordingly to make code reuse and improvment easier.