Make logdir

This commit is contained in:
Michel Breyer
2021-10-13 15:44:06 +02:00
parent 50d18f349b
commit c6126d5a3f
2 changed files with 15 additions and 14 deletions

View File

@@ -41,6 +41,7 @@ def create_parser():
class Logger:
def __init__(self, args):
args.logdir.mkdir(parents=True, exist_ok=True)
stamp = datetime.now().strftime("%y%m%d-%H%M%S")
name = "{}_policy={},seed={}.csv".format(
stamp,